From 9c796b207d7a251ca42dffc931d27571d6e3d8d9 Mon Sep 17 00:00:00 2001 From: DibyaJyoti Parida Date: Sun, 6 Oct 2024 02:52:06 +0530 Subject: [PATCH] Update NullNode.java After merge this the getname() function return "There is no node" not give null value --- null-object/src/main/java/com/iluwatar/nullobject/NullNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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