Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-2958

Potential null reference in ScanTask#get()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Later
    • None
    • None
    • None
    • None

    Description

          if (localRQ == null && state.get() == ADDED)
            throw new IllegalStateException("Tried to get result twice");
      
          Object r = localRQ.poll(timeout, unit);
      

      If state.get() is not ADDED, the poll() method call would result in NullPointerException

      Attachments

        Issue Links

          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: