mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-08 17:45:24 +02:00
Workaround bug 153253 - NPE when importing connection-private filters
The bug used to stop the entire process of restoring connections. With the workaround, only the filter is missed, but the rest is imported correctly. It might be a good idea to put similar try..catch constructs around all critical parts of the importer, in order to shield problems in some connections from others connections.
This commit is contained in:
parent
3d3460f63f
commit
c129e89e79
1 changed files with 7 additions and 1 deletions
|
@ -483,7 +483,13 @@ public class RSEDOMImporter implements IRSEDOMImporter
|
||||||
if (filterPool != null) {
|
if (filterPool != null) {
|
||||||
filterPoolReference = referenceManager.addReferenceToSystemFilterPool(filterPool);
|
filterPoolReference = referenceManager.addReferenceToSystemFilterPool(filterPool);
|
||||||
} else {
|
} else {
|
||||||
filterPoolReference = referenceManager.addReferenceToSystemFilterPool(filterPoolManager, filterPoolName);
|
try {
|
||||||
|
filterPoolReference = referenceManager.addReferenceToSystemFilterPool(filterPoolManager, filterPoolName);
|
||||||
|
} catch(NullPointerException e) {
|
||||||
|
//TODO Workaround for bug 153253 -- should be fixed properly
|
||||||
|
System.err.println("TODO: Fix bug 153253 - NPE reading connection-private filter pools");
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return filterPoolReference;
|
return filterPoolReference;
|
||||||
|
|
Loading…
Add table
Reference in a new issue