]> khamidou — GitHub mirrors - electron.git/commitdiff
NSWorkspace selectFile:inFileViewerRootedAtPath: requires a non-null second argument.
authorTheo Julienne <theojulienne@github.com>
Thu, 8 Oct 2015 18:25:05 +0000 (11:25 -0700)
committerTheo Julienne <theojulienne@github.com>
Thu, 8 Oct 2015 18:25:05 +0000 (11:25 -0700)
atom/common/platform_util_mac.mm

index 1aa75effd35bca46aeb09311934dbdba4cec76c4..2f9e2b7642365638007ac428b9844a5a0966696c 100644 (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();
 }