@GandhiTheDerg@pawb.social to Programmer Humor@lemmy.ml • 1 year agoPersonally I prefer throw new nullpointerexceptionpawb.socialimagemessage-square30fedilinkarrow-up1399arrow-down18
arrow-up1391arrow-down1imagePersonally I prefer throw new nullpointerexceptionpawb.social@GandhiTheDerg@pawb.social to Programmer Humor@lemmy.ml • 1 year agomessage-square30fedilink
minus-square@silenium_dev@etaorion.orglinkfedilink1•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