buttilda / Headcrumbs

Headcrumbs
aww yiss
14 stars 21 forks source link

Invalid/Broken Recipe Ingredient #111

Open bdkuhman opened 6 years ago

bdkuhman commented 6 years ago

Someone sent me a crash report for my mod, and I noticed that it was crashing while indexing the recipe for headcrumbs:player.

Relevant error from JEI:

[18:16:56] [main/WARN]: Found a broken ingredient 1xtile.headcrumbs.player@0 headcrumbs:player
java.lang.NullPointerException: itemStack.getDisplayName() must not be null.
    at mezz.jei.util.ErrorUtil.checkNotNull(ErrorUtil.java:218) ~[ErrorUtil.class:?]
    at mezz.jei.plugins.vanilla.ingredients.ItemStackHelper.getDisplayName(ItemStackHelper.java:36) ~[ItemStackHelper.class:?]
    at mezz.jei.plugins.vanilla.ingredients.ItemStackHelper.getDisplayName(ItemStackHelper.java:16) ~[ItemStackHelper.class:?]
    at mezz.jei.ingredients.IngredientInformation.getDisplayName(IngredientInformation.java:27) ~[IngredientInformation.class:?]
    at mezz.jei.ingredients.IngredientListElement.<init>(IngredientListElement.java:82) ~[IngredientListElement.class:?]
    at mezz.jei.ingredients.IngredientListElement.create(IngredientListElement.java:57) [IngredientListElement.class:?]
    at mezz.jei.ingredients.IngredientListElementFactory.addToBaseList(IngredientListElementFactory.java:62) [IngredientListElementFactory.class:?]
    at mezz.jei.ingredients.IngredientListElementFactory.createBaseList(IngredientListElementFactory.java:23) [IngredientListElementFactory.class:?]
    at mezz.jei.startup.JeiStarter.start(JeiStarter.java:72) [JeiStarter.class:?]
    at mezz.jei.startup.ProxyCommonClient.loadComplete(ProxyCommonClient.java:120) [ProxyCommonClient.class:?]
    at mezz.jei.JustEnoughItems.loadComplete(JustEnoughItems.java:54) [JustEnoughItems.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_161]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
    at 

net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:629) [FMLModContainer.class:?]
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) [guava-21.0.jar:?]
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) [guava-21.0.jar:?]
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) [guava-21.0.jar:?]
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) [guava-21.0.jar:?]
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) [guava-21.0.jar:?]
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) [guava-21.0.jar:?]
    at com.google.common.eventbus.EventBus.post(EventBus.java:217) [guava-21.0.jar:?]
    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:218) [LoadController.class:?]
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:196) [LoadController.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_161]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) [guava-21.0.jar:?]
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) [guava-21.0.jar:?]
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) [guava-21.0.jar:?]
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) [guava-21.0.jar:?]
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) [guava-21.0.jar:?]
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) [guava-21.0.jar:?]
    at com.google.common.eventbus.EventBus.post(EventBus.java:217) [guava-21.0.jar:?]
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135) [LoadController.class:?]
    at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:752) [Loader.class:?]
    at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:329) [FMLClientHandler.class:?]
    at net.minecraft.client.Minecraft.init(Minecraft.java:581) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_161]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_161]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:25) [start/:?]
[18:16:56] [main/INFO]: Building ingredient list took 543.1 ms```

Link to report on my issue Tracker: https://bitbucket.org/bdkuhman/deconstructiontable/issues/68/crash-on-startup

2018-10-18-6.log