Name should never be null, but just in case

This commit is contained in:
Stephen Connolly committed 2015-03-31 14:53:51 +01:00
1 parent 11ac075d73
commit 2020bbd513
1 file changed
+1 -1
+1 -1
View File
@@ -213,7 +213,7 @@ public class Nodes implements Saveable {
*/
@CheckForNull
public Node getNode(String name) {
return nodes.get(name);
return name == null ? null : nodes.get(name);
}
/**