mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45:43 +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,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);
|
||||
|
|
Loading…
Add table
Reference in a new issue