[Solved] I get an error like this, and application closes


I think in your code you are comparing two strings using equals function like String1.equals(String2) in your case String1 is null (not initialized), and it is the root cause of this exception.

For example:

String string1 = getInputText();
boolean status = false;
if(string1 != null) {
    status = string1.equals(string2);
}

So please check and ensure String1 is not null before calling String1.equals(String2).

7

solved I get an error like this, and application closes