portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetspeed-...@jakarta.apache.org
Subject [jira] Resolved: (JS1-519) Exception when used 'Enhanced ...' controllers
Date Tue, 12 Oct 2004 15:14:51 GMT
Message:

   The following issue has been resolved as FIXED.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JS1-519

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JS1-519
    Summary: Exception when used 'Enhanced ...' controllers
       Type: Bug

     Status: Resolved
   Priority: Trivial
 Resolution: FIXED

    Project: Jetspeed
 Components: 
             Distribution
   Fix Fors:
             1.6-dev
   Versions:
             1.5

   Assignee: 
   Reporter: Jose M GutiƩrrez

    Created: Mon, 20 Sep 2004 8:07 AM
    Updated: Tue, 12 Oct 2004 8:14 AM
Environment: Windows 2000, Tomcat 4.0.4

Description:
Method applyModelChanges in class org.apache.jetspeed.modules.actions.controllers.XMultiColumnControllerAction:
it is not checked that the variable 'moves' might be null.

When no portlet is moved in the pane customize (in case controller are 'Enhanced ...') the
parameter 'modelChangeList' contains an array with 1 element that contains an array with 0
elements.


        String[] modelChangeList = request.getParameterValues("modelChangeList");
        if (modelChangeList != null)
        {
            String[] moves = StringUtils.stringToArray(modelChangeList[0], ";"); // 'moves'
is equals to null

            SessionState customizationState = ((JetspeedRunData) data).getPageSessionState();
            List[] columns = (List[]) customizationState.getAttribute("customize-columns");

            for (int i = 0; i < moves.length; i++) // launching a NullPointerException
            {



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message