IntelliJ shortcut for inserting a null check?

Posted by ripper234 on Stack Overflow See other posts from Stack Overflow or by ripper234
Published on 2010-04-13T08:57:22Z Indexed on 2010/04/13 9:33 UTC
Read the original article Hit count: 281

Is there a shortcut for inserting the code:

if (someParameter == null)
   throw NullPointerException("someParameter is null");

© Stack Overflow or respective owner

Related posts about java

Related posts about intellij-idea