You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copied from
https://sourceforge.net/tracker/?func=detail&aid=2562805&group_id=4075&atid=1040
75
In bsh.Reflect.java the below code fails if debug is turned on and one of
method arguments is null.
Since args[i] is null, args[i].getClass() throws NullPointerException.
This makes debuging impossible in some cases.
Line:
+" type = "+args[i].getClass() );
Should be:
+" type = "+(args[i] == null ? "void" : args[i].getClass()) );
{{{
private static void logInvokeMethod(String msg, Method method, Object[] args) {
if (Interpreter.DEBUG) {
Interpreter.debug(msg + method + " with args:");
for (int i = 0; i < args.length; i++) {
Interpreter.debug("args[" + i + "] = " + args[i] + " type = " + args[i].getClass());
}
}
}
}}}
Original issue reported on code.google.com by pejob...@gmail.com on 27 Feb 2011 at 12:30
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
pejob...@gmail.com
on 27 Feb 2011 at 12:30The text was updated successfully, but these errors were encountered: