try {
Method m = object.getClass().getDeclaredMethod(methodName,
new Class<?>[] {});
- return (T) m.invoke(object);
+ return CommandUtils.unescapeNull((T) m.invoke(object));
} catch (NoSuchMethodException ex) {
// Ignored.
} catch (IllegalArgumentException e) {