.NullPointerException: Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference
Asked
Active
Viewed 29 times
0
-
1"Questions seeking debugging help ('**why isn't this code working?**') must include the desired behavior, a *specific problem or error* and *the shortest code necessary* to reproduce it **in the question itself**. Questions without **a clear problem statement** are not useful to other readers. See: [How to create a Minimal, Complete, and Verifiable example.](http://stackoverflow.com/help/mcve)" But I also recommend having a look at https://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it – Frank van Puffelen Jun 08 '21 at 14:11
1 Answers
0
It seems that the text field was not assigned before trying to access it, please refer to the relevant documentation for accessing and assigning text fields and their values. More debugging is needed to sufficiently answer anything else.

DIGI Byte
- 4,225
- 1
- 12
- 20
-
Ok thanks now it is working after adding a non null exception quote... – Bikramjeet Dasgupta Jun 11 '21 at 18:17