GuntherDW/CraftBukkit — comment on commit 8dc50079458db408049f47c077fb8fef2b5a6173
File: src/main/java/net/minecraft/server/ItemStack.java line 310
By GuntherDW:

Because checking for null is a tiny bit faster, it just boils down to personal preference I guess.