You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Jeremy Ford (JIRA)" <je...@portals.apache.org> on 2005/05/26 05:11:56 UTC

[jira] Updated: (JS1-519) [FIX] Exception when used 'Enhanced ...' controllers

     [ http://issues.apache.org/jira/browse/JS1-519?page=all ]

Jeremy Ford updated JS1-519:
----------------------------

    Summary: [FIX] Exception when used 'Enhanced ...' controllers  (was: Exception when used 'Enhanced ...' controllers)

> [FIX] Exception when used 'Enhanced ...' controllers
> ----------------------------------------------------
>
>          Key: JS1-519
>          URL: http://issues.apache.org/jira/browse/JS1-519
>      Project: Jetspeed
>         Type: Bug
>   Components: Distribution
>     Versions: 1.5
>  Environment: Windows 2000, Tomcat 4.0.4
>     Reporter: Jose M GutiƩrrez
>     Priority: Trivial
>      Fix For: 1.6-dev

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

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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