mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fixed NPE
This commit is contained in:
parent
d537a34599
commit
515919579d
1 changed files with 9 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue