From e5907676e61e487dcddda3a31a48d874e58938a7 Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Fri, 10 May 2019 19:10:39 +0400 Subject: [PATCH] Replaced getOrDefault() to get() in InMemoryGraph --- .../github/chronosx88/JGUN/storageBackends/InMemoryGraph.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/chronosx88/JGUN/storageBackends/InMemoryGraph.java b/src/main/java/io/github/chronosx88/JGUN/storageBackends/InMemoryGraph.java index 5f781d2..4cd78e3 100644 --- a/src/main/java/io/github/chronosx88/JGUN/storageBackends/InMemoryGraph.java +++ b/src/main/java/io/github/chronosx88/JGUN/storageBackends/InMemoryGraph.java @@ -21,7 +21,7 @@ public class InMemoryGraph implements StorageBackend { } public Node getNode(String soul) { - return nodes.getOrDefault(soul, null); + return nodes.get(soul); } public void addNode(String soul, Node incomingNode) {