]> source.dussan.org Git - aspectj.git/commitdiff
avoid NPE!
authoraclement <aclement>
Fri, 3 Oct 2008 23:37:27 +0000 (23:37 +0000)
committeraclement <aclement>
Fri, 3 Oct 2008 23:37:27 +0000 (23:37 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java

index 177e952599616a9790c2c648d307bc172af93067..638bbe625d1904140c873b72f5d6ad406010d8bb 100644 (file)
@@ -975,8 +975,10 @@ public class AjBuildManager implements IOutputClassFileNameProvider, IBinarySour
        }
 
        public void cleanupEnvironment() {
-               environment.cleanup();
-               environment = null;
+               if (environment != null) {
+                       environment.cleanup();
+                       environment = null;
+               }
        }
 
        /*