aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2019-07-25 13:20:58 +0200
committerRoel Spilker <r.spilker@gmail.com>2019-07-25 13:20:58 +0200
commitff1c01d9e9e66d898c30939b497490b04fe6163c (patch)
tree72e396db342b4af6f7ac02450267939f8b51351e /src
parent867c3caf61fcc76b7cb8a7356e71858889f85ebf (diff)
downloadlombok-ff1c01d9e9e66d898c30939b497490b04fe6163c.tar.gz
lombok-ff1c01d9e9e66d898c30939b497490b04fe6163c.tar.bz2
lombok-ff1c01d9e9e66d898c30939b497490b04fe6163c.zip
add comments
Diffstat (limited to 'src')
-rw-r--r--src/core/lombok/javac/apt/LombokProcessor.java6
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;