Permalink
Browse files

Fix issue #233 by checking for null

  • Loading branch information...
ndw committed Aug 14, 2016
1 parent aa0c256 commit f79faac70804259e7329e97908f9c42fd4604173
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/main/java/com/xmlcalabash/core/XProcRuntime.java
@@ -335,8 +335,10 @@ public void close() {
HttpClientUtils.closeQuietly(httpClient);
httpClient = null;
- for (XProcExtensionFunctionDefinition xf : exFuncs) {
- xf.close();
+ if (exFuncs != null) {
+ for (XProcExtensionFunctionDefinition xf : exFuncs) {
+ xf.close();
+ }
}
exFuncs = null;
}

0 comments on commit f79faac

Please sign in to comment.