Skip to content
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

RequiredFieldValidator for SelectionController #44

Open
mgursch opened this issue Nov 16, 2016 · 0 comments
Open

RequiredFieldValidator for SelectionController #44

mgursch opened this issue Nov 16, 2016 · 0 comments

Comments

@mgursch
Copy link

mgursch commented Nov 16, 2016

Hello

I think there is a bug in RequiredFieldValidator in use with SelectionController.

new SelectionController(context, id, label, isMandatory, x,y, false);

So a selection is required.

But in RequiredFieldValidator at the following line

if (value == null || (value instanceof String && TextUtils.isEmpty((String) value))) {

value is "0".

But it should not be a String "0". It should be an int zero.

Is my implementation wrong or did i found a bug?

Greets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant