1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 15:15:25 +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:
Martin Oberhuber 2006-08-09 09:42:46 +00:00
parent 3d3460f63f
commit c129e89e79

View file

@ -483,7 +483,13 @@ public class RSEDOMImporter implements IRSEDOMImporter
if (filterPool != null) {
filterPoolReference = referenceManager.addReferenceToSystemFilterPool(filterPool);
} 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;