Details
Description
Class org.apache.struts.util.PropertyUtils:
...
public static Object getSimpleProperty(Object bean, String name)
throws IllegalAccessException, InvocationTargetException,
NoSuchMethodException {
// Retrieve the property getter method for the specified property
PropertyDescriptor descriptor =
getPropertyDescriptor(bean, name);
if (descriptor == null)
throw new NoSuchMethodException("Unknown property '" +
name + "'");
...
-------------------
Upon closer inspection, getPropertyDescriptor will return null if the bean is
null, in which case NoSuchMethodException is rather misleading.