News ยป
Added by Komorek, Kamil almost 5 years ago
So basic:
Object honey = null switch (honey) { // NPE ! case whatever: // ... default: // ... Wont evaluate }
SolutionPut if (honey == null) before switch.
if (honey == null)
Comments