[gatein-issues] [JBoss JIRA] (GTNPORTAL-2179) NavigationResource Constructor have to init SiteType attribute
Vu Viet Phuong (Work logged) (JIRA)
jira-events at lists.jboss.org
Wed Oct 19 22:43:45 EDT 2011
[ https://issues.jboss.org/browse/GTNPORTAL-2179?page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel\#worklog-{worklog.getId()} ]
Vu Viet Phuong logged work on GTNPORTAL-2179:
---------------------------------------------
Author: Vu Viet Phuong
Created on: 19/Oct/11 10:42 PM
Start Date: 19/Oct/11 10:42 PM
Worklog Time Spent: 15 minutes
Issue Time Tracking
-------------------
Remaining Estimate: 0 minutes
Time Spent: 15 minutes
Worklog Id: (was: 12426003)
> NavigationResource Constructor have to init SiteType attribute
> --------------------------------------------------------------
>
> Key: GTNPORTAL-2179
> URL: https://issues.jboss.org/browse/GTNPORTAL-2179
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Hai Nguyen
> Assignee: Vu Viet Phuong
> Priority: Minor
> Labels: portal-s62, synced
> Fix For: 3.2.0-M02
>
> Time Spent: 15 minutes
> Remaining Estimate: 0 minutes
>
> When using this constructor:
> {code:xml}
> public NavigationResource(String siteName)
> {
> this(null, siteName, null);
> }
> {code}
> the siteType isn't initialized.
> So when using this contructor like here:
> {code:xml}
> RequestContext ctx = RequestContext.getCurrentInstance();
> NodeURL nodeURL = ctx.createURL(NodeURL.TYPE);
> NavigationResource resource = new NavigationResource("classic");
> return nodeURL.setResource(resource).toString();
> {code}
> You 'll get a NullPointerException:
> {code:xml}
> Caused by: java.lang.NullPointerException
> at org.exoplatform.web.url.navigation.NodeURL.getParameterValue(NodeURL.java:90)
> at org.exoplatform.portal.url.PortalURLContext.render(PortalURLContext.java:135)
> at org.exoplatform.web.url.PortalURL.toString(PortalURL.java:307)
> {code}
> caused by the non intialized siteType attribute.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the gatein-issues
mailing list