n/a TDDE: TraceableDisposable.throwDisposalError 118.699 118.699 1

This commit is contained in:
Denis.Zhdanov
2012-06-27 15:51:35 +04:00
parent e177aa79f9
commit ec515bd01a
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2011 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -73,6 +73,9 @@ public abstract class ContentFolderBaseImpl extends RootModelComponentBase imple
@Override
public VirtualFile getFile() {
if (!myFilePointer.isValid()) {
return null;
}
final VirtualFile file = myFilePointer.getFile();
return file == null || !file.isDirectory() ? null : file;
}