org.json.jsonexception: valor nulo do tipo org.json.jsonObject $ 1 não pode ser convertido em jsonObject

String crappyPrefix = "null";

if(result.startsWith(crappyPrefix)){
    result = result.substring(crappyPrefix.length(), result.length());
}
JSONObject jo = new JSONObject(result);
Angry Ant