Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
JsonNode jsonNode = jsonParser.readValue(value, JsonNode.class); if (jsonNode.has("user") && jsonNode.get("user").get("lang").asText().equals("en")) {
jsonNode.get("user").get("lang") may return null, leading to NullPointerException.