From: aclement Date: Fri, 3 Oct 2008 23:37:27 +0000 (+0000) Subject: avoid NPE! X-Git-Tag: V1_6_2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3817c58a2bef7f5899e3295997fb82bf9a46678c;p=aspectj.git avoid NPE! --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java index 177e95259..638bbe625 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java @@ -975,8 +975,10 @@ public class AjBuildManager implements IOutputClassFileNameProvider, IBinarySour } public void cleanupEnvironment() { - environment.cleanup(); - environment = null; + if (environment != null) { + environment.cleanup(); + environment = null; + } } /*