Skip to content

Commit b6e5831

Browse files
amalloyError Prone Team
authored andcommitted
Work around another javac bug in InvalidLink
PiperOrigin-RevId: 391833917
1 parent 7b03871 commit b6e5831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/google/errorprone/bugpatterns/javadoc/InvalidLink.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public Void visitLink(LinkTree linkTree, Void unused) {
156156
element =
157157
JavacTrees.instance(state.context)
158158
.getElement(new DocTreePath(getCurrentPath(), linkTree.getReference()));
159-
} catch (NullPointerException e) {
159+
} catch (NullPointerException | AssertionError e) {
160160
// TODO(b/176098078): remove once JDK 12 is the minimum supported version
161161
// https://bugs.openjdk.java.net/browse/JDK-8200432
162162
} finally {

0 commit comments

Comments
 (0)