portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r378365 - /portals/jetspeed-2/trunk/commons/src/java/org/apache/jetspeed/util/JetspeedLongObjectID.java
Date Thu, 16 Feb 2006 20:58:57 GMT
Author: ate
Date: Thu Feb 16 12:58:55 2006
New Revision: 378365

URL: http://svn.apache.org/viewcvs?rev=378365&view=rev
Log:
Small additional sanity check similar to the one in JetspeedObjectID
See http://issues.apache.org/jira/browse/JS2-501

Modified:
    portals/jetspeed-2/trunk/commons/src/java/org/apache/jetspeed/util/JetspeedLongObjectID.java

Modified: portals/jetspeed-2/trunk/commons/src/java/org/apache/jetspeed/util/JetspeedLongObjectID.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/commons/src/java/org/apache/jetspeed/util/JetspeedLongObjectID.java?rev=378365&r1=378364&r2=378365&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/commons/src/java/org/apache/jetspeed/util/JetspeedLongObjectID.java
(original)
+++ portals/jetspeed-2/trunk/commons/src/java/org/apache/jetspeed/util/JetspeedLongObjectID.java
Thu Feb 16 12:58:55 2006
@@ -33,6 +33,11 @@
     public JetspeedLongObjectID(Long oid)
     {
         this.oid = oid;
+        if ( oid == null )
+        {
+            // really cannot have a null here
+            throw new NullPointerException();
+        }
     }
 
     public long getOID()



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message