DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35258>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35258

           Summary: TreeList Collections.binarySearch problem
           Product: Commons
           Version: 3.1
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Collections
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


Sometimes TreeList crashes if i tried to call:
  Collections.binarySearch(queue, n, comp);
with ArrayList is everything ok.

Exception in thread "main" java.lang.NullPointerException
        at 
org.apache.commons.collections.list.TreeList$TreeListIterator.previous
(TreeList.java:841)
        at java.util.Collections.get(Unknown Source)
        at java.util.Collections.iteratorBinarySearch(Unknown Source)
        at java.util.Collections.binarySearch(Unknown Source)
        at utils.queue.QueueSorted.put(QueueSorted.java:51)
        at framework.search.GraphSearch.solve(GraphSearch.java:53)
        at search.informed.BestFirstSearch.solve(BestFirstSearch.java:20)
        at Hlavni.main(Hlavni.java:66)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to