mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-07 00:38:21 +00:00
[BUGFIX] Added null check
This commit is contained in:
@@ -18,7 +18,10 @@ public class NpcDef {
|
|||||||
* @return id of this item
|
* @return id of this item
|
||||||
*/
|
*/
|
||||||
public int getId() {
|
public int getId() {
|
||||||
return accessor.getId();
|
if (accessor != null) {
|
||||||
|
return accessor.getId();
|
||||||
|
}
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user