NexusDialog icon indicating copy to clipboard operation
NexusDialog copied to clipboard

RequiredFieldValidator for SelectionController

Open mgursch opened this issue 9 years ago • 0 comments

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

mgursch avatar Nov 16 '16 14:11 mgursch