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

Can't work without AttributeSet: NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' #63

Open
yatochk opened this issue Mar 15, 2021 · 0 comments

Comments

@yatochk
Copy link

yatochk commented Mar 15, 2021

MaskedEditText(context).apply { setMask(mask) }

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
at br.com.sapereaude.maskedEditText.MaskedEditText.generatePositionArrays(MaskedEditText.java:205)

I trying run this code and getting NullPointerException during a call setMask(mask)

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