mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-25 20:16:13 +01:00
Lets check for NPE
This commit is contained in:
parent
a64482cb53
commit
7a0295b410
@ -234,6 +234,8 @@ public class Reflections {
|
||||
return null;
|
||||
try {
|
||||
Object nmsStack = asNMSCopy(item);
|
||||
if (nmsStack == null)
|
||||
return item;
|
||||
Method methTag = nmsStack.getClass().getMethod("getTag");
|
||||
Object tag = methTag.invoke(nmsStack);
|
||||
if (tag == null)
|
||||
|
Loading…
Reference in New Issue
Block a user