From 3817c58a2bef7f5899e3295997fb82bf9a46678c Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 3 Oct 2008 23:37:27 +0000 Subject: [PATCH] avoid NPE! --- .../aspectj/ajdt/internal/core/builder/AjBuildManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; + } } /* -- 2.39.5