From f2698ea13d0bc57d36b3a7cd0940754d4c1935c5 Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Fri, 18 Sep 2020 13:01:52 +0200 Subject: Add missing null check --- src/eclipseAgent/lombok/eclipse/agent/PatchJavadoc.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/eclipseAgent/lombok/eclipse/agent/PatchJavadoc.java') diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchJavadoc.java b/src/eclipseAgent/lombok/eclipse/agent/PatchJavadoc.java index a91e4d8b..4e48aa81 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchJavadoc.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchJavadoc.java @@ -53,6 +53,7 @@ public class PatchJavadoc { if (iCompilationUnit instanceof CompilationUnit) { CompilationUnit compilationUnit = (CompilationUnit) iCompilationUnit; Map docs = EclipseAugments.CompilationUnit_javadoc.get(compilationUnit); + if (docs == null) return null; String signature = getSignature(sourceMethod); String rawJavadoc = docs.get(signature); -- cgit