mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +02:00
Bug #212284 : Exception when deleting a project including content
This commit is contained in:
parent
39358ec2b9
commit
7035bbb480
1 changed files with 6 additions and 4 deletions
|
@ -473,11 +473,13 @@ public class CProjectDescriptionManager implements ICProjectDescriptionManager {
|
||||||
ICStorageElement oldEl = des.doGetCachedRootStorageElement();
|
ICStorageElement oldEl = des.doGetCachedRootStorageElement();
|
||||||
if(oldEl != null){
|
if(oldEl != null){
|
||||||
InputStream newContents = getSharedProperty(project, STORAGE_FILE_NAME);
|
InputStream newContents = getSharedProperty(project, STORAGE_FILE_NAME);
|
||||||
|
if (newContents != null) {
|
||||||
ByteArrayOutputStream oldOut = write(oldEl);
|
ByteArrayOutputStream oldOut = write(oldEl);
|
||||||
InputStream oldContents = new ByteArrayInputStream(oldOut.toByteArray());
|
InputStream oldContents = new ByteArrayInputStream(oldOut.toByteArray());
|
||||||
if(streamsMatch(newContents, oldContents))
|
if(streamsMatch(newContents, oldContents))
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (CoreException e){
|
} catch (CoreException e){
|
||||||
CCorePlugin.log(e);
|
CCorePlugin.log(e);
|
||||||
//continue
|
//continue
|
||||||
|
|
Loading…
Add table
Reference in a new issue