NPE in Inspection Gadgets

build 3212

Trying to autofix:
assertTrue("Key length should be a multiple of skipSize", keyGen.generateKey("key",
sizes).length % sizes.getSkipSize() == 0);

java.lang.NullPointerException
at com.siyeh.ig.junit.SimplifiableJUnitAssertionInspection$SimplifyJUnitAssertFix.applyFix(SimplifiableJUnitAssertionInspection.java:90)

at com.intellij.codeInspection.ex.r.invoke(r.java:2)
at com.intellij.codeInsight.h.a.u$8.run(u$8.java:6)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:139)

at com.intellij.codeInsight.h.a.u$11.run(u$11.java)
at com.intellij.openapi.command.a.a.executeCommand(a.java:5)
at com.intellij.openapi.command.a.a.executeCommand(a.java:18)
at com.intellij.codeInsight.h.a.u$0.run(u$0.java:8)
at com.intellij.openapi.application.impl.c$b_.run(c$b_.java:9)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:1)

at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:146)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:63)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)


Please sign in to leave a comment.