[jira] Closed: (XDP-127) NullPointerException when no portlet.resource-bundle is found by portlet plugin

"Konstantin Pribluda (JIRA)" <jira-yCVjj/[email protected]> Tue, 6 Nov 2007 12:54:35 -0600 (CST)
Newsgroups gmane.comp.java.xdoclet-plugins
Message-ID <30213338.1194375275872.JavaMail.haus-jira@codehaus01.managed.contegix.com>
     [ http://jira.codehaus.org/browse/XDP-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantin Pribluda closed XDP-127.
-----------------------------------

    Resolution: Fixed

fixed long ago, issue was forgotten

> 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
>          Issue Type: Bug
>          Components: portlet
>    Affects Versions: 1.0.2
>            Reporter: Jacek Laskowski
>            Priority: Critical
>             Fix For: 1.0.4
>
>         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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/