Issue Details (XML | Word | Printable)

Key: XBEAN-92
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Shawn Jiang
Reporter: karan singh malhi
Votes: 0
Watchers: 1
Available Workflow Actions

Reopen Issue
Operations

If you were logged in you would be able to see more operations.
XBean

UrlSet excludePaths() method throws a nullpointer exception if the pathString argument is null

Created: 06/Sep/07 03:02 PM   Updated: 10/Sep/09 09:39 PM
Return to search
Component/s: finder
Affects Version/s: None
Fix Version/s: 3.6

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works XBEAN-92.patch.txt 2009-09-04 08:05 PM Andreas Veithen 1 kB
Environment: IBM JDK 5

Resolution Date: 10/Sep/09 09:39 PM


 Description  « Hide
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;
}



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
David Blevins made changes - 06/Sep/07 08:35 PM
Field Original Value New Value
Assignee David Blevins [ dblevins ]
Alan Cabrera made changes - 23/Jan/08 09:54 PM
Fix Version/s 3.4 [ 12312938 ]
Dain Sundstrom made changes - 28/Feb/08 10:08 PM
Component/s finder [ 12312182 ]
Guillaume Nodet made changes - 04/Jul/08 07:32 AM
Fix Version/s 3.5 [ 12313293 ]
Fix Version/s 3.4 [ 12312938 ]
Shawn Jiang made changes - 01/Jun/09 10:38 AM
Assignee David Blevins [ dblevins ] Shawn Jiang [ genspring ]
Andreas Veithen made changes - 04/Sep/09 08:05 PM
Attachment XBEAN-92.patch.txt [ 12418666 ]
David Jencks made changes - 10/Sep/09 09:39 PM
Resolution Fixed [ 1 ]
Fix Version/s 3.5 [ 12313293 ]
Fix Version/s 3.6 [ 12313981 ]
Status Open [ 1 ] Closed [ 6 ]