Scriblon/ExpensiveStones — Issue #9: Nullpointer on field storage in ESFieldManager
Author: Scriblon
Created: 2011-11-19 21:33:17+00:00
State: open

Very strange bug, I got it initialized in the constructor... Might be the static thing going on..

The Code
```java
209 System.out.println("Field " + field.getStatus());
210 System.out.println("Storage " + storage.toString());
211 storage.offerUpdatedField(field);
```

The error:

```shell
22:29:17 [SEVERE] Could not pass event BLOCK_PLACE to ExpensiveStones
java.lang.NullPointerException
at me.scriblon.plugins.expensivestones.managers.ESFieldManager.setDormantField(ESFieldManager.java:210)
at me.scriblon.plugins.expensivestones.managers.ESFieldManager.addField(ESFieldManager.java:73)
at me.scriblon.plugins.expensivestones.listeners.ESBlockListener.onBlockPlace(ESBlockListener.java:151)
at org.bukkit.plugin.java.JavaPluginLoader$32.execute(JavaPluginLoader.java:478)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:93)
at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:77)
at net.minecraft.server.ItemBlock.a(ItemBlock.java:94)
at net.minecraft.server.ItemStack.placeItem(ItemStack.java:62)
at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:281)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
at net.minecraft.server.Packet15Place.a(SourceFile:57)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:501)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
```