ReikaKalseki / Reika_Mods_Issues

The issue tracker for all of my mods - RotaryCraft, its addons, ChromatiCraft, and everything else.
46 stars 13 forks source link

NPE when intercepting recipe check with thaumcraft NEI plugin #3392

Open MalTeeez opened 4 months ago

MalTeeez commented 4 months ago

When trying to follow the recipe of a Thaumcraft aspect in NEI, ChromatiCraft tries to get the UUID for this "fake" ItemStack and runs into a NPE down the line.

The actual line causing this seems to be obsolete since the parts using it are commented out: https://github.com/ReikaKalseki/ChromatiCraft/blob/1a5e514d61630995b6c0477368adfd7b0f91887c/ChromaClientEventController.java#L1639

Crash:


java.lang.NullPointerException: Cannot invoke "String.split(String)" because "string" is null
    at RFB-Launch//cpw.mods.fml.common.registry.GameRegistry$UniqueIdentifier.<init>(GameRegistry.java:389) ~[GameRegistry$UniqueIdentifier.class:?]
    at RFB-Launch//cpw.mods.fml.common.registry.GameData.getUniqueName(GameData.java:239) ~[GameData.class:?]
    at RFB-Launch//cpw.mods.fml.common.registry.GameRegistry.findUniqueIdentifierFor(GameRegistry.java:462) ~[GameRegistry.class:?]
    at RFB-Launch//Reika.ChromatiCraft.ChromaClientEventController.loadLexiconRecipe(ChromaClientEventController.java:1639) ~[ChromaClientEventController.class:?]
    at RFB-Launch//Reika.ChromatiCraft.ChromaClientEventController.interceptNEI(ChromaClientEventController.java:1633) ~[ChromaClientEventController.class:?]
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_908_ChromaClientEventController_interceptNEI_NEIRecipeCheckEvent.invoke(.dynamic) ~[?:?]```