activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r740087 - /activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LinkedNodeList.java
Date Mon, 02 Feb 2009 19:38:05 GMT
Author: chirino
Date: Mon Feb  2 19:38:04 2009
New Revision: 740087

URL: http://svn.apache.org/viewvc?rev=740087&view=rev
Log:
Avoid NPE

Modified:
    activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LinkedNodeList.java

Modified: activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LinkedNodeList.java
URL: http://svn.apache.org/viewvc/activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LinkedNodeList.java?rev=740087&r1=740086&r2=740087&view=diff
==============================================================================
--- activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LinkedNodeList.java (original)
+++ activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LinkedNodeList.java Mon Feb
 2 19:38:04 2009
@@ -100,6 +100,8 @@
      * @return
      */
     public T rotate() {
+    	if( head ==null )
+    		return null;
         return head = head.getNextCircular();
     }
 



Mime
View raw message