Skip to content

Commit

Permalink
Fix crashing when Files pane encounters a broken symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheng5 committed Mar 1, 2011
1 parent 2943b70 commit 7a4f510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/core/FileInfo.cpp
Expand Up @@ -23,7 +23,7 @@ FileInfo::FileInfo(const FilePath& filePath)
size_(0),
lastWriteTime_(0)
{
if (!isDirectory_)
if (!isDirectory_ && filePath.exists())
{
size_ = filePath.size();
lastWriteTime_ = filePath.lastWriteTime();
Expand Down

0 comments on commit 7a4f510

Please sign in to comment.