aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-09-24 01:55:31 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-09-24 01:55:31 +0200
commitf0cdc27a3f86c0ca728ad598893dd2b95ba38e20 (patch)
treebb132da815714e2189bf947b6514233cf82f9e22 /src/core/lombok
parent7b8a85e1f991f838d6692ef789f53ed604a4a4e9 (diff)
downloadlombok-f0cdc27a3f86c0ca728ad598893dd2b95ba38e20.tar.gz
lombok-f0cdc27a3f86c0ca728ad598893dd2b95ba38e20.tar.bz2
lombok-f0cdc27a3f86c0ca728ad598893dd2b95ba38e20.zip
tiny tiny fix for some incredibly unlikely mix of intellij, ibm stuff, and who knows what. At any rate, Roel is absolutely sure this will fix it, so, hey, who am I to argue? NB: Unicum
Diffstat (limited to 'src/core/lombok')
-rw-r--r--src/core/lombok/javac/apt/Processor.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lombok/javac/apt/Processor.java b/src/core/lombok/javac/apt/Processor.java
index 110acaad..5f28aa88 100644
--- a/src/core/lombok/javac/apt/Processor.java
+++ b/src/core/lombok/javac/apt/Processor.java
@@ -210,6 +210,7 @@ public class Processor extends AbstractProcessor {
Field f = JavacProcessingEnvironment.class.getDeclaredField("processorClassLoader");
f.setAccessible(true);
ClassLoader unwrapped = (ClassLoader) f.get(processingEnv);
+ if (unwrapped == null) return;
ClassLoader wrapped = new WrappingClassLoader(unwrapped);
f.set(processingEnv, wrapped);
} catch (NoSuchFieldException e) {