[gatein-issues] [JBoss JIRA] (GTNPORTAL-2459) Possible NPE in org.gatein.portal.wsrp.structure.MOPConsumerStructureProvider

kien nguyen (JIRA) jira-events at lists.jboss.org
Mon Jun 4 00:54:17 EDT 2012


kien nguyen created GTNPORTAL-2459:
--------------------------------------

             Summary: Possible NPE in org.gatein.portal.wsrp.structure.MOPConsumerStructureProvider
                 Key: GTNPORTAL-2459
                 URL: https://issues.jboss.org/browse/GTNPORTAL-2459
             Project: GateIn Portal
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: kien nguyen
             Fix For: 4.0.0


method
{code}
public void addWindow(String windowName, String uuid)
      {
         // add suffix in case we have several windows with the same name in the page
         if (childrenWindows.containsKey(windowName))
         {
            if (windowName.endsWith("|"))
            {
               windowName += "|";
            }
            else
            {
               windowName += windowName + " |";
            }
         }

         childrenWindows.put(windowName, uuid);
      }
{code}
--> windowName can be null and we can have NPE with this line : windowName.endsWith("|")

--
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