diff options
author | Roel Spilker <r.spilker@gmail.com> | 2019-07-25 13:20:58 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2019-07-25 13:20:58 +0200 |
commit | ff1c01d9e9e66d898c30939b497490b04fe6163c (patch) | |
tree | 72e396db342b4af6f7ac02450267939f8b51351e /src | |
parent | 867c3caf61fcc76b7cb8a7356e71858889f85ebf (diff) | |
download | lombok-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.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; |