DO NOT REPLY [Bug 35258] New: - TreeList Collections.binarySearch problem

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

DO NOT REPLY [Bug 35258] New: - TreeList Collections.binarySearch problem

Bugzilla from bugzilla@apache.org
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: [hidden email]
        ReportedBy: [hidden email]


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: [hidden email]
For additional commands, e-mail: [hidden email]