Bukkit/Bukkit — pull request #843 by AlphaBlend (2013-04-05 00:09:28+00:00)
Title: Check null before grabbing owning plugin

The null validation check comes after the owning plugin is extracted from it, resulting in a possible NPE if a null value is passed to the method.