Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
Handle any null pointer exceptions that might occur when looking for …
Browse files Browse the repository at this point in the history
…AppleSDKs
  • Loading branch information
shs96c committed Mar 25, 2019
1 parent b3ede28 commit a1cafa8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ private static boolean buildSdkFromPath(
sdkBuilder.addAllArchitectures(architectures);
return true;
}
} catch (NoSuchFileException e) {
} catch (NoSuchFileException | NullPointerException e) {
LOG.warn(e, "Skipping SDK at path %s, no SDKSettings.plist found", sdkDir);
return false;
}
Expand Down
7 changes: 0 additions & 7 deletions src/com/facebook/buck/jvm/java/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,7 @@ java_library_with_plugins(
"JavaLibraryDescription.java",
"JavaLibraryRules.java",
"JavaLibraryWithTests.java",
<<<<<<< HEAD
=======
"JavaPluginDescription.java",
"JavaSourceJar.java",
>>>>>>> fb/master
"JavaTest.java",
"JavaTestDescription.java",
"JavacFactory.java",
Expand All @@ -350,11 +346,8 @@ java_library_with_plugins(
"MaybeRequiredForSourceOnlyAbiArg.java",
"PrebuiltJar.java",
"PrebuiltJarDescription.java",
<<<<<<< HEAD
"SourceJar.java",
=======
"StandardJavacPlugin.java",
>>>>>>> fb/master
"UnusedDependenciesFinderFactory.java",
"ZipArchiveDependencySupplier.java",
],
Expand Down

0 comments on commit a1cafa8

Please sign in to comment.