diff --git a/null-object/src/main/java/com/iluwatar/nullobject/NullNode.java b/null-object/src/main/java/com/iluwatar/nullobject/NullNode.java index ce74ff0560ed..37ee6a1c8201 100644 --- a/null-object/src/main/java/com/iluwatar/nullobject/NullNode.java +++ b/null-object/src/main/java/com/iluwatar/nullobject/NullNode.java @@ -57,7 +57,7 @@ public Node getRight() { @Override public String getName() { - return null; + return "There is no node create a node "; } @Override