NSWorkspace selectFile:inFileViewerRootedAtPath: requires a non-null second argument.

This commit is contained in:
Theo Julienne 2015-10-08 11:25:05 -07:00
parent 59b43a6571
commit 957de56343

View file

@ -20,7 +20,7 @@ void ShowItemInFolder(const base::FilePath& full_path) {
DCHECK([NSThread isMainThread]);
NSString* path_string = base::SysUTF8ToNSString(full_path.value());
if (!path_string || ![[NSWorkspace sharedWorkspace] selectFile:path_string
inFileViewerRootedAtPath:nil])
inFileViewerRootedAtPath:@""])
LOG(WARNING) << "NSWorkspace failed to select file " << full_path.value();
}