1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

fixed NPE

This commit is contained in:
David Inglis 2004-06-21 17:49:20 +00:00
parent d537a34599
commit 515919579d

View file

@ -132,6 +132,7 @@ public class BuildConsoleManager implements IBuildConsoleManager, IResourceChang
if (resource != null && resource.getType() == IResource.PROJECT) {
if (event.getType() == IResourceChangeEvent.PRE_DELETE || event.getType() == IResourceChangeEvent.PRE_CLOSE) {
IDocumentPartitioner partioner = (IDocumentPartitioner)fConsoleMap.remove(resource);
if (partioner != null) {
partioner.disconnect();
Object[] list = listeners.getListeners();
if (list.length > 0) {
@ -144,6 +145,7 @@ public class BuildConsoleManager implements IBuildConsoleManager, IResourceChang
}
}
}
}
public void shutdown() {
if (infoColor != null) {