throw new NullPointerException();这会抛出NullPointerException,但当我尝试调用此方法时:IntelliJIDEA没有警告我它抛出了NullPointerException。IntelliJ应该警告我这一点,对吧?怎么打开它?@编辑
好吧,我了解到NullPointerException是一种
java.lang.RuntimeException: java.lang.NullPointerException at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:52)
at java.awt.event.InvocationEvent.dispatchEventDispatchThre
在idea.log中,出现了以下NullPointerException:java.lang.RuntimeException: java.lang.NullPointerException
at com.intellij.openapi.application.impl.LaterInvocator.invokeAndW