commit | e081fe1a9c7aebbcc0298936d1c5b81025d5ac64 | [log] [tgz] |
---|---|---|
author | Christoffer Quist Adamsen <christofferqa@google.com> | Tue Nov 16 09:18:11 2021 +0100 |
committer | Christoffer Quist Adamsen <christofferqa@google.com> | Tue Nov 16 08:49:47 2021 +0000 |
tree | 05c57b4674acdb6e3c536993c7a8bbfe960fb8bc | |
parent | b984a0074e0787e6388225b61d7719fd1cffb0a1 [diff] |
Fix NPE from StructuralSpecification Change-Id: I67fbfa5b926b0c8a58efad0a7f565b7ecf21b7df
diff --git a/src/main/java/com/android/tools/r8/graph/DexMethodHandle.java b/src/main/java/com/android/tools/r8/graph/DexMethodHandle.java index 227270d..63c3261 100644 --- a/src/main/java/com/android/tools/r8/graph/DexMethodHandle.java +++ b/src/main/java/com/android/tools/r8/graph/DexMethodHandle.java
@@ -323,7 +323,7 @@ .withConditionalItem(DexMethodHandle::isFieldHandle, DexMethodHandle::asField) .withConditionalItem(DexMethodHandle::isMethodHandle, DexMethodHandle::asMethod) .withBool(m -> m.isInterface) - .withItem(m -> m.rewrittenTarget); + .withNullableItem(m -> m.rewrittenTarget); } public Handle toAsmHandle() {