# HG changeset patch # User Gilles Duboscq # Date 1389263265 -3600 # Node ID be2b096a5f692e952c31cbc784996be6789b4959 # Parent d8143c431d630d41be0d1c85abbfaab7c4a7c255 GraalCompilerTest: fix NPE when debugging is not enabled. diff -r d8143c431d63 -r be2b096a5f69 graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java --- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java Thu Jan 09 11:29:56 2014 +0100 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java Thu Jan 09 11:27:45 2014 +0100 @@ -124,7 +124,9 @@ @After public void afterTest() { + if (debugScope != null) { debugScope.close(); + } debugScope = null; }