minus-squaresilenium_dev@etaorion.orgtoProgrammer Humor@lemmy.ml•Personally I prefer `throw new nullpointerexception`linkfedilinkarrow-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 linkfedilink
Fun fact: there’s a shorter way to throw a NullPointerException:
throw null;
Because
throw
throws a NPE if the parameter is null