Permalink
Browse files

Fix bug where runtime.close() is called when runtime hasn't been init…

…ialized
  • Loading branch information...
ndw committed Sep 11, 2014
1 parent 5e3617c commit 793ca03430eefe18065187a5bb1fc678c8f42b49
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/com/xmlcalabash/drivers/Main.java
@@ -133,7 +133,9 @@ public void run(String[] args) throws IOException {
}
} finally {
// Here all memory should be freed by the next gc, right?
- runtime.close();
+ if (runtime != null) {
+ runtime.close();
+ }
}
}

0 comments on commit 793ca03

Please sign in to comment.