1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 14:55:41 +02:00

Bug #212284 : Exception when deleting a project including content

This commit is contained in:
Oleg Krasilnikov 2007-12-10 13:42:10 +00:00
parent 39358ec2b9
commit 7035bbb480

View file

@ -473,10 +473,12 @@ public class CProjectDescriptionManager implements ICProjectDescriptionManager {
ICStorageElement oldEl = des.doGetCachedRootStorageElement();
if(oldEl != null){
InputStream newContents = getSharedProperty(project, STORAGE_FILE_NAME);
ByteArrayOutputStream oldOut = write(oldEl);
InputStream oldContents = new ByteArrayInputStream(oldOut.toByteArray());
if(streamsMatch(newContents, oldContents))
return null;
if (newContents != null) {
ByteArrayOutputStream oldOut = write(oldEl);
InputStream oldContents = new ByteArrayInputStream(oldOut.toByteArray());
if(streamsMatch(newContents, oldContents))
return null;
}
}
} catch (CoreException e){
CCorePlugin.log(e);