
NullPointerExcpetion log spam when trying to add an ability which can't be added
MatthiasMann opened this issue ยท 0 comments
- ๐ Bug
Short description:
The log id full of these messages:
[25Sep2019 20:28:41.946] [Client thread/WARN] [net.minecraftforge.common.util.LazyOptional/CATCHING]: Catching
java.lang.NullPointerException: Supplier should not return null value
at net.minecraftforge.common.util.LazyOptional.getValue(LazyOptional.java:119) ~[?:?]
at net.minecraftforge.common.util.LazyOptional.orElse(LazyOptional.java:219) ~[?:?]
at org.cyclops.everlastingabilities.ability.AbilityHelpers.addPlayerAbility(AbilityHelpers.java:142) ~[?:1.5.4]
at org.cyclops.everlastingabilities.ability.AbilityHelpers.canInsertToPlayer(AbilityHelpers.java:194) ~[?:1.5.4]
at org.cyclops.everlastingabilities.client.gui.ContainerScreenAbilityContainer.canMoveToPlayer(ContainerScreenAbilityContainer.java:425) ~[?:1.5.4]
at org.cyclops.everlastingabilities.client.gui.ContainerScreenAbilityContainer.canMoveToPlayer(ContainerScreenAbilityContainer.java:442) ~[?:1.5.4]
at org.cyclops.everlastingabilities.client.gui.ContainerScreenAbilityContainer.func_146976_a(ContainerScreenAbilityContainer.java:168) ~[?:1.5.4]
at net.minecraft.client.gui.screen.inventory.ContainerScreen.render(ContainerScreen.java:75) ~[?:?]
at org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended.drawCurrentScreen(ContainerScreenExtended.java:68) ~[?:1.5.2]
at org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended.render(ContainerScreenExtended.java:63) ~[?:1.5.2]
at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:348) ~[?:?]
at net.minecraft.client.renderer.GameRenderer.func_195458_a(GameRenderer.java:554) ~[?:?]
at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:887) ~[?:?]
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:384) ~[?:?]
at net.minecraft.client.main.Main.main(SourceFile:155) ~[1.14.4-forge-28.1.20.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_222]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_222]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_222]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_222]
at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:56) ~[forge-1.14.4-28.1.20.jar:28.1]
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-3.2.0.jar:?]
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:50) [modlauncher-3.2.0.jar:?]
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:68) [modlauncher-3.2.0.jar:?]
at cpw.mods.modlauncher.Launcher.run(Launcher.java:80) [modlauncher-3.2.0.jar:?]
at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-3.2.0.jar:?]
Steps to reproduce the problem:
- Right click a totem which you can't add (eg water breathing after you already have it active)
- Select the ability in the right list
- The above message is spammed in the log while the GUI is open
Expected behaviour:
No log spam
Versions:
- This mod: EverlastingAbilities-1.14.4-1.5.4
- Minecraft: 1.14.4
- Forge: 28.1.20
Log file:
The log is large and the above message repeats a lot plus others (like issue #135) - I can provide it if the above snippet is not enough.