Remove "NULL.equals(object)" on line 2756 of JSONObject.java since line 2752 has already tested it. Remove the empty string on line 249 of JSONPointer.java.
There are some equals() that are not constant.equals(variable), but variable.equals(constant)