[gatein-issues] [JBoss JIRA] (GTNPORTAL-3202) NPE when going to nonexisting user site from mobile site

Marek Posolda (JIRA) jira-events at lists.jboss.org
Wed Jul 24 11:13:26 EDT 2013


    [ https://issues.jboss.org/browse/GTNPORTAL-3202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12792725#comment-12792725 ] 

Marek Posolda commented on GTNPORTAL-3202:
------------------------------------------

Not sure if it's bug in public API or in portlet itself. Fact is that PortalRequest.getInstance().getNavigation() returns null when portlet is trying to call more methods on the "navigation" object.
                
> NPE when going to nonexisting user site from mobile site
> --------------------------------------------------------
>
>                 Key: GTNPORTAL-3202
>                 URL: https://issues.jboss.org/browse/GTNPORTAL-3202
>             Project: GateIn Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Mobile
>    Affects Versions: 3.6.1.Final
>            Reporter: Marek Posolda
>            Assignee: Matt Wringe
>            Priority: Optional
>             Fix For: 3.7.0.Final
>
>
> - Go to http://localhost:8080/portal/classic
> - Click to "mobile" link, which redirects me to http://localhost:8080/portal/mobile
> - Now go to http://localhost:8080/portal/u/lolo (Directly change URL in browser). This will throw NPE
> {code}
> Caused by: java.lang.NullPointerException
>         at org.gatein.portlet.responsive.features.FeaturesPortlet.generateFeaturePageLink(FeaturesPortlet.java:63)
>         at org.gatein.portlet.responsive.features.FeaturesPortlet.doView(FeaturesPortlet.java:50)
>         at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:354)
>         at javax.portlet.GenericPortlet.render(GenericPortlet.java:259)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the gatein-issues mailing list