hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1481526 - /hama/trunk/graph/src/main/java/org/apache/hama/graph/Vertex.java
Date Sun, 12 May 2013 11:18:02 GMT
Author: edwardyoon
Date: Sun May 12 11:18:02 2013
New Revision: 1481526

URL: http://svn.apache.org/r1481526
Log:
getEdges() should not return the null

Modified:
    hama/trunk/graph/src/main/java/org/apache/hama/graph/Vertex.java

Modified: hama/trunk/graph/src/main/java/org/apache/hama/graph/Vertex.java
URL: http://svn.apache.org/viewvc/hama/trunk/graph/src/main/java/org/apache/hama/graph/Vertex.java?rev=1481526&r1=1481525&r2=1481526&view=diff
==============================================================================
--- hama/trunk/graph/src/main/java/org/apache/hama/graph/Vertex.java (original)
+++ hama/trunk/graph/src/main/java/org/apache/hama/graph/Vertex.java Sun May 12 11:18:02 2013
@@ -130,7 +130,7 @@ public abstract class Vertex<V extends W
 
   @Override
   public List<Edge<V, E>> getEdges() {
-    return edges;
+    return (edges == null) ? new ArrayList<Edge<V, E>>() : edges;
   }
 
   @Override



Mime
View raw message