diff options
-rw-r--r-- | src/core/lombok/javac/apt/LombokProcessor.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/lombok/javac/apt/LombokProcessor.java b/src/core/lombok/javac/apt/LombokProcessor.java index ed6cdb65..c32e09d5 100644 --- a/src/core/lombok/javac/apt/LombokProcessor.java +++ b/src/core/lombok/javac/apt/LombokProcessor.java @@ -393,7 +393,11 @@ public class LombokProcessor extends AbstractProcessor { if (trees != null) { try { path = trees.getPath(element); - } catch (NullPointerException ignore) {} + } catch (NullPointerException ignore) { + // Happens if a package-info.java dowsn't conatin a package declaration. + // https://github.com/rzwitserloot/lombok/issues/2184 + // We can safely ignore those, since they do not need any processing + } } if (path == null) return null; |