ws-scout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kurt T Stam (JIRA)" <scout-...@ws.apache.org>
Subject [jira] Updated: (SCOUT-80) copying lists into arrays invites code errors such as NPEs
Date Thu, 23 Jul 2009 19:30:14 GMT

     [ https://issues.apache.org/jira/browse/SCOUT-80?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kurt T Stam updated SCOUT-80:
-----------------------------

    Fix Version/s:     (was: 1.1rc1)
                   1.1

> copying lists into arrays invites code errors such as NPEs
> ----------------------------------------------------------
>
>                 Key: SCOUT-80
>                 URL: https://issues.apache.org/jira/browse/SCOUT-80
>             Project: Scout
>          Issue Type: Bug
>          Components: Scout Implementation
>    Affects Versions: 1.1rc1
>            Reporter: David Jencks
>            Assignee: Kurt T Stam
>             Fix For: 1.1
>
>         Attachments: SCOUT-80.patch
>
>
> I suspect as a result of updating to jaxb from xmlbeans, there is a lot of code like:
> List<Stuff> listOfStuff = jaxbObject.getListOfStuff();
> Stuff[] stuffArr = new Stuff[listOfStuff.size()];
> //sometimes, forget to copy in contents
> for (int i= 0; i < stuffArr.length; i++ ) {
> //NPE
> }
> well.... I only found one NPE but you get the idea.
> The attached patch fixes the NPE and updates some nearby code and reinstates a tck-required
exception removed in SCOUT-43, presumably accidentally.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message