Why when I try to do the following: (in java
)
if (reason.equals("time")) { // my code }
The IDE shows me this warning message: (?)
Method invocation 'reason.equals("time")' may produce 'java.lang.NullPointerException'
I couldn't find an abstract explanation to this warning message.