From d32861393c7d1866f0b1e4169cdfdd9b14c0fab0 Mon Sep 17 00:00:00 2001 From: iryupnik Date: Thu, 5 Mar 2020 11:33:04 +0200 Subject: [PATCH] Fixed NullPointerException --- src/main/java/Map.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/Map.java b/src/main/java/Map.java index d5203e5..de970c9 100644 --- a/src/main/java/Map.java +++ b/src/main/java/Map.java @@ -25,6 +25,7 @@ public class Map { moveToCells = new LinkedList(); block = new LinkedList(); isBlocked = false; + imageCell = new ImageCell(); TypeOfCell type; if (isBlocked) @@ -50,6 +51,7 @@ public class Map { block = new LinkedList(); mapArray = new TypeOfCell[height][width]; this.isBlocked = isBlocked; + imageCell = new ImageCell(); TypeOfCell type; if (isBlocked)