IPP exception

Hi.

I have the following exception standing when the cursor is right before or
on a try:

java.lang.NullPointerException
at
com.siyeh.ipp.exceptions.ExceptionUtils.calculateExceptionsThrownForNewExpre
ssion(ExceptionUtils.java:351)
at
com.siyeh.ipp.exceptions.ExceptionUtils.calculateExceptionsThrown(ExceptionU
tils.java:306)
at
com.siyeh.ipp.exceptions.ExceptionUtils.calculateExceptionsThrownForMethodCa
ll(ExceptionUtils.java:386)
at
com.siyeh.ipp.exceptions.ExceptionUtils.calculateExceptionsThrown(ExceptionU
tils.java:300)
at
com.siyeh.ipp.exceptions.ExceptionUtils.calculateExceptionsThrownForDeclarat
ionStatemt(ExceptionUtils.java:146)
at
com.siyeh.ipp.exceptions.ExceptionUtils.calculateExceptionsThrownForStatemen
t(ExceptionUtils.java:71)
at
com.siyeh.ipp.exceptions.ExceptionUtils.calculateExceptionsThrownForCodeBloc
k(ExceptionUtils.java:462)
at
com.siyeh.ipp.exceptions.DetailExceptionsPredicate.satisfiedBy(DetailExcepti
onsPredicate.java:38)
at com.siyeh.ipp.Intention.findMatchingElement(Intention.java:125)
at com.siyeh.ipp.Intention.isAvailable(Intention.java:143)
at com.intellij.codeInsight.k.a.l.c(l.java:61)
at com.intellij.codeInsight.k.a.l.b(l.java:124)
at com.intellij.codeInsight.k.a.d$3.run(d$3.java:5)
at com.intellij.util.LaterInvokator$FlushQueue.run(LaterInvokator.java:2)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at com.intellij.ide.q.b(q.java:66)
at com.intellij.ide.q.a(q.java:32)
at com.intellij.ide.q.dispatchEvent(q.java:107)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va: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)

This is the code snipplet:

try {
Class customHandler = Class.forName(customHandlerClass);
Method method = customHandler.getMethod("handleTreeCommand", new
Class[]{ServletHelper.class});
xrtnCustom = (XmlJavaScriptReturn) method.invoke(null, new
Object[]);
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (NoSuchMethodException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
}

I tried to have an isolated test but the exception didn't happen.

I hope this is enough for problem resolving, if not ask for the details you
need.

Thanks,
Amnon


1 comment

Cool. I've got a fix for this one, and will be pushing out a bugfix release before the end of the year.

--Dave

0

Please sign in to leave a comment.