Hi
At runtime the following will fail if the string variable (jp_player.time) is NULL....
//BA.debugLineNum = 85;BA.debugLine="If jp_player.time <> \"\" Then";
if ((_jp_player.red_time).equals("") == false) {
.....but when stepping through the code in the debugger it does not pick this up and treats it as an empty string "" and doesn't crash.
The error I'm referring to is:-
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
Is this a bug? I'm using b4a 5.5.
At runtime the following will fail if the string variable (jp_player.time) is NULL....
//BA.debugLineNum = 85;BA.debugLine="If jp_player.time <> \"\" Then";
if ((_jp_player.red_time).equals("") == false) {
.....but when stepping through the code in the debugger it does not pick this up and treats it as an empty string "" and doesn't crash.
The error I'm referring to is:-
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
Is this a bug? I'm using b4a 5.5.