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