diff options
author | Pacien TRAN-GIRARD | 2014-03-05 10:38:24 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-03-05 10:38:24 +0100 |
commit | 1e494506aa5855a950e207d51784bc502e38e643 (patch) | |
tree | 81a786d7861aee3fbc9dbe141e8f40b9d376f6cd /src | |
parent | 3fc06f393c5f8fc3647e58aee2dc6048c72e8e56 (diff) | |
download | esieequest-1e494506aa5855a950e207d51784bc502e38e643.tar.gz |
Fix exception when no item
Diffstat (limited to 'src')
-rw-r--r-- | src/esieequest/model/Game.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
218 | } | 218 | } |
219 | 219 | ||
220 | public String getItemDescription() { | 220 | public String getItemDescription() { |
221 | if (this.currentRoom != null) { | 221 | if (this.currentRoom.getItem() != null) { |
222 | return "This room contain : " + this.currentRoom.getItem().getDescription(); | 222 | return "This room contain : " + this.currentRoom.getItem().getDescription(); |
223 | } else { | 223 | } else { |
224 | return ""; | 224 | return ""; |