Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
JDO 3.2
Description
In class org.apache.jdo.exectck.Utilities, the method `printClasspath()` could throw an unexpected NullPointerException.
The related part of that method is shown as follows.
```java
public void printClasspath()
```
The invocation of `ClassLoader.getSystemClassLoader()` could return null in JDK 8, as is depicted in the Javadoc in its source code:
@return The system <tt>ClassLoader</tt> for delegation, or
<tt>null</tt> if none
If that is the case, the invocation to `getURLs()` could cause a NullPointerException.
Maybe we could check for null pointer here or mention the potential NullPointerException at the Javadoc?