Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-3635

Potential null deference in TwitterExample#SelectEnglishAndTokenizeFlatMap#flatMap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.0
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: