History
Log In
h
ome
b
rowse project
f
ind issues
Q
uick Search:
Learn more about
Quick Search
Issue Details
Summary:
UrlSet excludePaths() method throws a nullpointer exception if the pathString argument is null
Key:
XBEAN-92
Type:
Bug
Status:
Closed
Resolution:
Fixed
Priority:
Blocker
Assignee:
Shawn Jiang
Reporter:
karan singh malhi
Votes:
0
Watchers:
1
Reopen Issue
*
Summary:
*
Issue Type:
Bug
New Feature
Improvement
Wish
Task
RTC
Some issue types are unavailable due to incompatible field configuration and/or workflow associations.
Priority:
Blocker
Critical
Major
Minor
Trivial
Component/s:
Unknown
asm
classloader
classpath
finder
kernel
maven-plugin
naming
reflect
server
spring
telnet
website
Affects Version/s:
Unknown
3.4.2
3.4.1
3.4
3.3
3.2
3.1
3.0.1
3.0
2.8
2.7
2.6
2.5
2.4
2.3
2.2
2.1
2.0
3.4.3
3.5
3.6
3.7
Environment:
IBM JDK 5
For example operating system, software platform and/or hardware specifications (include as appropriate for the issue).
Description:
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; }
Original Estimate:
An estimate of how much work remains until this issue will be resolved.
The format of this is ' *w *d *h *m ' (representing weeks, days, hours and minutes - where * can be any number)
Examples: 4d, 5h 30m, 60m and 3w.