Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.0-alpha1
-
None
Description
I found a bug in org.apache.pluto.core.impl.ResourceBundleFactory (pluto-container subproject). When deploying new portlet app to pluto (1.1-ALPHA), if any of short-title or keywords is not defined in portlet.xml, a NullPointerException will be thrown out by GenericPortlet.getTitle() method. The reason is:
In the constructor:
defaultBundle = new ListResourceBundle() {
Object[][] contents = new String[][]
;
public Object[][] getContents()
};
java.util.ListResourceBundle requires that, for the key/value pairs returned by getContents() method, both key and value should not be null. But the inner ListResourceBundle subclass does not check for null values.
Regards.
ZHENG Zhong