commit | 6747db1dd7a4919d81f5b1ba433aa4c998c053f8 | [log] [tgz] |
---|---|---|
author | Christoffer Adamsen <christofferqa@google.com> | Fri Aug 02 16:26:41 2024 +0200 |
committer | Christoffer Adamsen <christofferqa@google.com> | Fri Aug 02 16:26:41 2024 +0200 |
tree | 3dbf95219f1171eb8255401e9bf25e9458ce646b | |
parent | f9a1286e511ad9d6846f15a9a20f26d60071a53f [diff] |
Fix NPE in R8TestBuilder Change-Id: Ide125cddbe6d07e74bd78b002593cb78f16a4dc4
diff --git a/src/test/testbase/java/com/android/tools/r8/R8TestBuilder.java b/src/test/testbase/java/com/android/tools/r8/R8TestBuilder.java index be791e9..ecd1ea7 100644 --- a/src/test/testbase/java/com/android/tools/r8/R8TestBuilder.java +++ b/src/test/testbase/java/com/android/tools/r8/R8TestBuilder.java
@@ -171,7 +171,7 @@ residualArtProfiles, resourceShrinkerOutput, resourceShrinkerOutputForFeatures, - buildMetadata.get()); + buildMetadata != null ? buildMetadata.get() : null); switch (allowedDiagnosticMessages) { case ALL: compileResult.getDiagnosticMessages().assertAllDiagnosticsMatch(new IsAnything<>());