Details
-
Bug
-
Resolution: Done
-
Major
-
JBossAS-4.2.2.GA
-
None
Description
When no invoker proxy bindings are configured, org.jboss.metadata.BeanMetaData.getInvokerBindings() returns a NullPointerException. This is caused by the fix for JBAS-4444. org.jboss.metadata.ConfigurationMetaData.getInvokers() used to return a zero-length array when no bindings were configured but it now returns a null value which BeanMetaData.getInvokerBindings() does not properly handle:
public Iterator getInvokerBindings()
{
if (invokerBindings == null)
{
// See if there is a container default invoker name
String[] defaultNames = configuration.getInvokers();
if (defaultNames.length > 0) // Line 263 NPE
{
invokerBindings = new HashMap();
for (int count = 0; count < defaultNames.length; count++)
}
else
}
return invokerBindings.keySet().iterator();
}
Changing line 263 to if(defaultNames!=null && defaultNames.length()>0) would eliminate the NPE.