From b6e5831adf5948f2b1d4e036845c745832bdf841 Mon Sep 17 00:00:00 2001 From: Alan Malloy Date: Thu, 19 Aug 2021 13:38:06 -0700 Subject: [PATCH] Work around another javac bug in InvalidLink PiperOrigin-RevId: 391833917 --- .../com/google/errorprone/bugpatterns/javadoc/InvalidLink.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/google/errorprone/bugpatterns/javadoc/InvalidLink.java b/core/src/main/java/com/google/errorprone/bugpatterns/javadoc/InvalidLink.java index 48d9a830ddb..5beda874b40 100644 --- a/core/src/main/java/com/google/errorprone/bugpatterns/javadoc/InvalidLink.java +++ b/core/src/main/java/com/google/errorprone/bugpatterns/javadoc/InvalidLink.java @@ -156,7 +156,7 @@ public Void visitLink(LinkTree linkTree, Void unused) { element = JavacTrees.instance(state.context) .getElement(new DocTreePath(getCurrentPath(), linkTree.getReference())); - } catch (NullPointerException e) { + } catch (NullPointerException | AssertionError e) { // TODO(b/176098078): remove once JDK 12 is the minimum supported version // https://bugs.openjdk.java.net/browse/JDK-8200432 } finally {