mirror of
https://github.com/GTNewHorizons/FindIt.git
synced 2026-11-24 18:24:21 +00:00
Fix essentia search NPE (#26)
This commit is contained in:
1 parent
511b388b83
commit
d78625b514
3 files changed
+8
-8
No files matched your search
@@ -32,7 +32,7 @@ public class ThaumcraftProvider implements IStackFilterProvider {
|
||||
if (!(item instanceof ItemAspect || item instanceof IEssentiaContainerItem)) return false;
|
||||
|
||||
AspectList stackAspects = ItemAspect.getAspects(stack);
|
||||
if (stackAspects.size() != 1) return false;
|
||||
if (stackAspects == null || stackAspects.size() != 1) return false;
|
||||
|
||||
Aspect stackAspect = stackAspects.getAspects()[0];
|
||||
|
||||
|
||||
Reference in new issue
Block a user