commit | 3d30d0034dce37e5a005176997f099fa23a762ca | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@onlab.us> | Tue Oct 22 11:16:49 2013 -0700 |
committer | Yuta HIGUCHI <y-higuchi@onlab.us> | Tue Oct 22 11:16:49 2013 -0700 |
tree | e4bd7a9ac2fd7f0fcf2f9ad123c1320706a12c92 | |
parent | 661c86f130d4dbce648c77eb272bc4628e004125 [diff] |
Bug fix to avoid Null Pointer Exception.
diff --git a/src/main/java/net/onrc/onos/graph/GraphDBConnection.java b/src/main/java/net/onrc/onos/graph/GraphDBConnection.java index f9f3b67..0dfa051 100644 --- a/src/main/java/net/onrc/onos/graph/GraphDBConnection.java +++ b/src/main/java/net/onrc/onos/graph/GraphDBConnection.java
@@ -125,7 +125,7 @@ * Return whether this connection is valid. */ public Boolean isValid() { - return (graph != null || graph.isOpen()); + return (graph != null && graph.isOpen()); } /**