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

MaskedTextBox is throwing an exception when setClearIfNotValid is setted as true #739

Open
samuelcardoso opened this issue Jun 25, 2016 · 1 comment

Comments

@samuelcardoso
Copy link
Member

The exception occurs in:
org.cruxframework.crux.widgets.client.maskedtextbox.MaskedInput.onBlur(BlurEvent)
it's a NPE at textBox field when trying to access it's properties.

@samuelcardoso
Copy link
Member Author

A workaround was to avoid appling the mask again after the setClearIfNotValid is setted. So the following code was removed:

if(this.formatter != null && this.formatter instanceof MaskedFormatter)
{
  MaskedFormatter masked = (MaskedFormatter)formatter;
  masked.applyMask(this, clearIfNotValid);
}

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