commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1134812 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/GraphWrapper.java
Date Sat, 11 Jun 2011 23:02:34 GMT
Author: simonetripodi
Date: Sat Jun 11 23:02:34 2011
New Revision: 1134812

URL: http://svn.apache.org/viewvc?rev=1134812&view=rev
Log:
throw an IllegalArgumentException when passed a null wrapped graph

Modified:
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/GraphWrapper.java

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/GraphWrapper.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/GraphWrapper.java?rev=1134812&r1=1134811&r2=1134812&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/GraphWrapper.java
(original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/GraphWrapper.java
Sat Jun 11 23:02:34 2011
@@ -41,6 +41,10 @@ public class GraphWrapper<V extends Vert
      */
     public GraphWrapper( Graph<V, E> impl )
     {
+        if ( impl == null )
+        {
+            throw new IllegalArgumentException( "Wrapped Graph must be not null" );
+        }
         this.impl = impl;
     }
 



Mime
View raw message