pkmnfrk / equivalentintegrations

Equivalent Integrations - expanding EMC to the rest of the Minecraft ecosystem
Other
7 stars 4 forks source link

NPE #48

Open NotSpooky opened 4 years ago

NotSpooky commented 4 years ago

Got a NPE on Project Ozone 3 (mod version 0.4.6), at ProjectEWrapper line 59. So probably getKnowledgeProvider(world, owner) is returning a null, happens when selecting a diamond builder's wand in the hotbar whilst having a transmutation tablet also in the hotbar.

Stack trace:

at com.mike_caron.equivalentintegrations.integrations.projecte.ProjectEWrapper.getEmc(ProjectEWrapper.java:59) at com.mike_caron.equivalentintegrations.impl.ManagedEMCManager.getEMC(ManagedEMCManager.java:69) at com.mike_caron.equivalentintegrations.storage.EMCInventory.calculateInventory(EMCInventory.java:194) at com.mike_caron.equivalentintegrations.storage.EMCInventory.refresh(EMCInventory.java:112) at com.mike_caron.equivalentintegrations.storage.EMCInventory.(EMCInventory.java:55) at com.mike_caron.equivalentintegrations.storage.EMCInventory.(EMCInventory.java:44) at com.mike_caron.equivalentintegrations.impl.ManagedEMCManager.getEMCInventory(ManagedEMCManager.java:369) at com.mike_caron.equivalentintegrations.storage.EMCItemHandler.(EMCItemHandler.java:65) at com.mike_caron.equivalentintegrations.integrations.bbw.TabletContainerHandler.countItems(TabletContainerHandler.java:33) at portablejim.bbw.containers.ContainerManager.countItems(ContainerManager.java:55) at portablejim.bbw.shims.BasicPlayerShim.countItems(BasicPlayerShim.java:69) at portablejim.bbw.core.WandWorker.getProperItemStack(WandWorker.java:81) at portablejim.bbw.core.BlockEvents.blockHighlightEvent(BlockEvents.java:53) at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_3387_BlockEvents_blockHighlightEvent_DrawBlockHighlightEvent.invoke(.dynamic) at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) at net.minecraftforge.client.ForgeHooksClient.onDrawBlockHighlight(ForgeHooksClient.java:191) at net.minecraft.client.renderer.EntityRenderer.func_175068_a(EntityRenderer.java:1361) at net.minecraft.client.renderer.EntityRenderer.func_78471_a(EntityRenderer.java:1259)