NexusDialog
NexusDialog copied to clipboard
RequiredFieldValidator for SelectionController
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