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

Commit a1cafa8

Browse files
committed
Handle any null pointer exceptions that might occur when looking for AppleSDKs
1 parent b3ede28 commit a1cafa8

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/com/facebook/buck/apple/toolchain/impl/AppleSdkDiscovery.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ private static boolean buildSdkFromPath(
251251
sdkBuilder.addAllArchitectures(architectures);
252252
return true;
253253
}
254-
} catch (NoSuchFileException e) {
254+
} catch (NoSuchFileException | NullPointerException e) {
255255
LOG.warn(e, "Skipping SDK at path %s, no SDKSettings.plist found", sdkDir);
256256
return false;
257257
}

src/com/facebook/buck/jvm/java/BUCK

-7
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,7 @@ java_library_with_plugins(
331331
"JavaLibraryDescription.java",
332332
"JavaLibraryRules.java",
333333
"JavaLibraryWithTests.java",
334-
<<<<<<< HEAD
335-
=======
336334
"JavaPluginDescription.java",
337-
"JavaSourceJar.java",
338-
>>>>>>> fb/master
339335
"JavaTest.java",
340336
"JavaTestDescription.java",
341337
"JavacFactory.java",
@@ -350,11 +346,8 @@ java_library_with_plugins(
350346
"MaybeRequiredForSourceOnlyAbiArg.java",
351347
"PrebuiltJar.java",
352348
"PrebuiltJarDescription.java",
353-
<<<<<<< HEAD
354349
"SourceJar.java",
355-
=======
356350
"StandardJavacPlugin.java",
357-
>>>>>>> fb/master
358351
"UnusedDependenciesFinderFactory.java",
359352
"ZipArchiveDependencySupplier.java",
360353
],

0 commit comments

Comments
 (0)