[BUGFIX] Added null check

This commit is contained in:
JKetelaar
2016-10-05 01:12:58 +02:00
parent f2a30a4605
commit d7a9e63aeb
@@ -18,8 +18,11 @@ public class NpcDef {
* @return id of this item
*/
public int getId() {
if (accessor != null) {
return accessor.getId();
}
return -1;
}
/**
* Gets the accessor class