commit | b35a3819ee63fdfcceeff70ea29f6bff8d0b2fc7 | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@onlab.us> | Wed Oct 15 23:22:17 2014 -0700 |
committer | Yuta HIGUCHI <y-higuchi@onlab.us> | Wed Oct 15 23:22:17 2014 -0700 |
tree | 5e41b8e300a2aaeaa6712a1d5540f0dea4201916 | |
parent | b0995dfa8d5bbba545dc177f119e088688fbc794 [diff] |
bugfix Function input is Nullable Change-Id: Ie492fd070e300bbe6a2796805ba5f2c8a50c7248
diff --git a/core/api/src/main/java/org/onlab/onos/cluster/ControllerNodeToNodeId.java b/core/api/src/main/java/org/onlab/onos/cluster/ControllerNodeToNodeId.java index 0891494..0f79c68 100644 --- a/core/api/src/main/java/org/onlab/onos/cluster/ControllerNodeToNodeId.java +++ b/core/api/src/main/java/org/onlab/onos/cluster/ControllerNodeToNodeId.java
@@ -12,7 +12,11 @@ @Override public NodeId apply(ControllerNode input) { - return input.id(); + if (input == null) { + return null; + } else { + return input.id(); + } } /**