Skip to content

Commit

Permalink
Preventing possible NPE. Fixes issue 4193
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Oct 18, 2013
1 parent 9f1a7b6 commit c67023e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void setLibraryPath(CommandLine command, final Map<String, String> extraE

// On Snow Leopard, beware of problems the sqlite library
String firefoxLibraryPath = System.getProperty("webdriver.firefox.library.path",
binary.getParentFile().getAbsolutePath());
binary.getAbsoluteFile().getParentFile().getAbsolutePath());
if (Platform.getCurrent().is(Platform.MAC) && Platform.getCurrent().getMinorVersion() > 5) {
libraryPath.append(libraryPath).append(File.pathSeparator);
} else {
Expand Down

0 comments on commit c67023e

Please sign in to comment.