From 1e494506aa5855a950e207d51784bc502e38e643 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Wed, 5 Mar 2014 10:38:24 +0100 Subject: Fix exception when no item --- src/esieequest/model/Game.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/esieequest/model/Game.java b/src/esieequest/model/Game.java index eb74f85..59b4a32 100644 --- a/src/esieequest/model/Game.java +++ b/src/esieequest/model/Game.java @@ -218,7 +218,7 @@ public class Game { } public String getItemDescription() { - if (this.currentRoom != null) { + if (this.currentRoom.getItem() != null) { return "This room contain : " + this.currentRoom.getItem().getDescription(); } else { return ""; -- cgit v1.2.3