-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binder.removeBinding issue #11280
Comments
I am also getting similar issue when using removeBinding(field). |
The issue is located in
it's missing:
|
Hi, this is the repository for Vaadin Framework (i.e. versions 7 and 8). You seem to be using the newer version, Vaadin Flow, which is located in a different repository. |
instead of using remove binding i create only one binding for a field and judging by current state in runtime choose what i'm going to validate |
In Vaadin flow 1.0.5, I have several fields bound to a Binder instance. When I remove a binding (where there are still other bound properties) it is calling unbind. It seems like it should only call unbind when the count of bound properties is zero? Here is the code.
I end up receiving errors after I remove the binding
java.lang.NullPointerException: This Binding is no longer attached to a Binder
at java.base/java.util.Objects.requireNonNull(Objects.java:246) ~[na:na]
at com.vaadin.flow.data.binder.Binder$BindingImpl.validate(Binder.java:1027) ~[flow-data-1.0.5.jar:na]
from my other bound fields that are still using the binding.
Perhaps I'm misunderstanding how this should work?
The text was updated successfully, but these errors were encountered: