Skip to content

Commit

Permalink
Fix bug where runtime.close() is called when runtime hasn't been init…
Browse files Browse the repository at this point in the history
…ialized
  • Loading branch information
ndw committed Sep 11, 2014
1 parent 5e3617c commit 793ca03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/com/xmlcalabash/drivers/Main.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ public void run(String[] args) throws IOException {
} }
} finally { } finally {
// Here all memory should be freed by the next gc, right? // Here all memory should be freed by the next gc, right?
runtime.close(); if (runtime != null) {
runtime.close();
}
} }
} }


Expand Down

0 comments on commit 793ca03

Please sign in to comment.