geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <j...@apache.org>
Subject [jira] Closed: (XBEAN-92) UrlSet excludePaths() method throws a nullpointer exception if the pathString argument is null
Date Thu, 10 Sep 2009 21:40:57 GMT

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

David Jencks closed XBEAN-92.
-----------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 3.5)
                   3.6

> UrlSet excludePaths() method throws a nullpointer exception if the pathString argument
is null
> ----------------------------------------------------------------------------------------------
>
>                 Key: XBEAN-92
>                 URL: https://issues.apache.org/jira/browse/XBEAN-92
>             Project: XBean
>          Issue Type: Bug
>          Components: finder
>         Environment: IBM JDK 5
>            Reporter: karan singh malhi
>            Assignee: Shawn Jiang
>            Priority: Blocker
>             Fix For: 3.6
>
>         Attachments: XBEAN-92.patch.txt
>
>
> With IBM JDK 5, when we try to get the system property java.endorsed.dirs, it returns
null.  This is a critical issue as it prevents OpenEjb from starting 
> In UrlSet, the following method will lead to a NullPointerException:
>     public UrlSet excludeJavaEndorsedDirs() throws MalformedURLException {
>         return excludePaths(System.getProperty("java.endorsed.dirs"));
>     }
> This is because the excludePaths() method assumes that the pathString argument is always
non-null.
>    public UrlSet excludePaths(String pathString) throws MalformedURLException {
>         String[] paths = pathString.split(File.pathSeparator);
>         UrlSet urlSet = this;
>         for (String path : paths) {
>             File file = new File(path);
>             urlSet = urlSet.exclude(file);
>         }
>         return urlSet;
>     }

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


Mime
View raw message