GandhiTheDerg@pawb.social to Programmer Humor · 1 year agoPersonally I prefer throw new nullpointerexceptionpawb.socialimagemessage-square31fedilinkarrow-up1452arrow-down17
arrow-up1445arrow-down1imagePersonally I prefer throw new nullpointerexceptionpawb.socialGandhiTheDerg@pawb.social to Programmer Humor · 1 year agomessage-square31fedilink
minus-squaresilenium_dev@etaorion.orglinkfedilinkarrow-up1·1 year agoFun fact: there’s a shorter way to throw a NullPointerException: throw null; Because throw throws a NPE if the parameter is null
Fun fact: there’s a shorter way to throw a NullPointerException:
throw null;
Because
throw
throws a NPE if the parameter is null