Fix essentia search NPE (#26)

This commit is contained in:
Wilhelm Schuster authored and GitHub committed 2024-11-19 19:08:17 +01:00
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];