NullPointerException when no portlet.resource-bundle is found by portlet plugin
-------------------------------------------------------------------------------

         Key: XDP-127
         URL: http://jira.codehaus.org/browse/XDP-127
     Project: XDoclet 2 Plugins
        Type: Bug
  Components: portlet  
    Versions: 1.0.2    
 Reporter: Jacek Laskowski
    Priority: Critical
 Attachments: xdoclet2-portlet-plugin-issue.txt

When there's no portlet.resource-bundle tag the portlet tag finishes with 
NullPointerException. The tag is not mandatory thus the priority. Stack trace 
attached.

It's easy to fix. Just change the method - getResourceBundle()

public String getResourceBundle(JavaClass clazz)
    {
        return 
chopQuotes(clazz.getTagByName("portlet.resource-bundle").getNamedParameter("bundle"));
    }

to check whether getTagByName returns null and proceed accordingly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
xdoclet-plugins-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to