Error: 'boolean java.lang.String.equals (java.lang.Object)'

1

This is a program which, behind the calculator, stores files that it deems important. The message field of the error I believe is not his, but the Super SU or Android system, because every time in any program that has to have a deeper access it opens the same field style saying that granted permission. But this time an error occurred. Could someone help me solve this problem?

    
asked by anonymous 16.07.2015 / 15:21

1 answer

0

The error you entered indicates that somewhere in your code you are doing str1.equals(str2); and str2 is a null object, ie you are referring to a null object.

Check your code for the places where you are using the equals method to find where your error is.

Example that will give the error:

String str1 = "teste";
String str2 = null;
boolean ret = str1.equals(str2);
    
11.09.2015 / 22:51