mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-29 19:23:38 +02:00
fixed NPE
This commit is contained in:
parent
2ef1e13e0b
commit
75222a1dcf
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ public class BuildConsoleManager implements IBuildConsoleManager, IResourceChang
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
IResource resource = event.getResource();
|
IResource resource = event.getResource();
|
||||||
if (resource.getType() == IResource.PROJECT) {
|
if (resource != null && resource.getType() == IResource.PROJECT) {
|
||||||
if (event.getType() == IResourceChangeEvent.PRE_DELETE || event.getType() == IResourceChangeEvent.PRE_CLOSE) {
|
if (event.getType() == IResourceChangeEvent.PRE_DELETE || event.getType() == IResourceChangeEvent.PRE_CLOSE) {
|
||||||
fConsoleDocumentMap.remove(resource);
|
fConsoleDocumentMap.remove(resource);
|
||||||
Object[] list = listeners.getListeners();
|
Object[] list = listeners.getListeners();
|
||||||
|
|
Loading…
Add table
Reference in a new issue