r26598 - trunk/freenet/src/freenet/support

[email protected]
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: j16sdiz
Date: 2009-04-07 08:02:12 +0000 (Tue, 07 Apr 2009)
New Revision: 26598

Modified:
   trunk/freenet/src/freenet/support/TimeSortedHashtable.java
Log:
Null check

Modified: trunk/freenet/src/freenet/support/TimeSortedHashtable.java
===================================================================
--- trunk/freenet/src/freenet/support/TimeSortedHashtable.java	2009-04-07 08:01:07 UTC (rev 26597)
+++ trunk/freenet/src/freenet/support/TimeSortedHashtable.java	2009-04-07 08:02:12 UTC (rev 26598)
@@ -46,6 +46,8 @@
      */
     public final synchronized void push(T value, long now) {
     	assert(elements.size() == valueToElement.size());
+    	if (value == null)
+    		throw new NullPointerException();
     	
     	Element<T> e = valueToElement.get(value);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.