Java's switch statement eval / not supports null-value
So basic:
Object honey = null
switch (honey) { // NPE !
case whatever:
// ...
default:
// ... Wont evaluate
}
Solution
Put if (honey == null)
before switch.
Comments