commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35258] New: - TreeList Collections.binarySearch problem
Date Tue, 07 Jun 2005 21:21:29 GMT
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: trim@atlas.cz


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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message