Uploaded image for project: 'Eagle'
  1. Eagle
  2. EAGLE-984

Potential null dereference in SimpleWindowCounter#poll()

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: v0.5.1
    • Component/s: None
    • Labels:
      None

      Description

      Here is related code:

          public Tuple2<Long, Long> poll() {
              long oldestTimestamp = timeQueue.poll();
              Tuple2<Long, Long> pair = new Tuple2<>(oldestTimestamp, counter.get(oldestTimestamp));
      

      We should check the return value from timeQueue.poll() before casting to long.

        Activity

        Hide
        jhsenjaliya Jayesh added a comment -

        Ted Yu would you be interested in providing fix for this ?

        Show
        jhsenjaliya Jayesh added a comment - Ted Yu would you be interested in providing fix for this ?
        Hide
        yuzhihong@gmail.com Ted Yu added a comment - - edited

        I can work on this once EAGLE-985 is integrated .

        Show
        yuzhihong@gmail.com Ted Yu added a comment - - edited I can work on this once EAGLE-985 is integrated .

          People

          • Assignee:
            Unassigned
            Reporter:
            yuzhihong@gmail.com Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development