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

Potential null dereference in SimpleWindowCounter#poll()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • v0.5.1
    • None
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: