mung3r/MobRider — Issue #12: NPE riding unknow mobs
Author: mung3r
Created: 2012-01-03 04:01:40+00:00
State: open
Labels: Bug

```
2012-01-01 17:37:00 [SEVERE] Could not pass event PLAYER_INTERACT to MobRider
java.lang.NullPointerException
at com.edwardhand.mobrider.models.Ride.(Ride.java:45)
at com.edwardhand.mobrider.utils.MRHandler.getRide(MRHandler.java:39)
at com.edwardhand.mobrider.listeners.RiderPlayerListener.onPlayerInteract(RiderPlayerListener.java:77)
at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:338)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178)
at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:266)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:593)
at net.minecraft.server.Packet15Place.a(SourceFile:39)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:586)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
```