When opening an inventory (for example player inventory), taking any item into the hand and clicking in an non-slot part of the ui (not outside and not on a slot) will throw an exception when trying to getCurrentItem() in the InventoryClickEvent:
PPS: Bug reports which do not 1) contain a declaration of independence in Vanilla and without plugins, or 2) in the case of plugin API bugs, contain a minimal reproduction case (source + jar please) will be closed. Bug reports must contain step by step instructions to reproduce the bug from a clean server install with no assumptions or prior knowledge. Also make sure you include the full output of /version in your report. Please copy and paste this statement to the bottom of your report to indicate that you have read and understood it.
PPPS: Failure to include the above statement will result in a 24 hour ban from the forums.