1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 01:36:01 +02:00

qt core: prevent exceptions when deleting closed project

Change-Id: Ia2facb7682e83dc4d5023713f0d040b696f4ba6b
This commit is contained in:
Alena Laskavaia 2016-02-18 12:15:52 -05:00
parent f4cb39bc3b
commit e7d064e89c

View file

@ -162,7 +162,7 @@ public class QtBuildConfigurationFactory implements IAdapterFactory {
|| event.getType() == IResourceChangeEvent.PRE_DELETE) {
if (event.getResource().getType() == IResource.PROJECT) {
IProject project = event.getResource().getProject();
if (QtNature.hasNature(project)) {
if (project.isOpen() && project.exists() && QtNature.hasNature(project)) {
try {
for (IBuildConfiguration config : project.getBuildConfigs()) {
cache.remove(config);