diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-07-25 20:06:20 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-07-25 20:06:20 +0200 |
commit | 403f515aa28b94f223903c9d400bee3d4fa9b12e (patch) | |
tree | 41dfaf9fe9cfedef0e0c89331f000afedb5c8716 /test/core/src/lombok | |
parent | b325214e82e7d65dde32e197ab932ba5cd0b43c6 (diff) | |
download | lombok-403f515aa28b94f223903c9d400bee3d4fa9b12e.tar.gz lombok-403f515aa28b94f223903c9d400bee3d4fa9b12e.tar.bz2 lombok-403f515aa28b94f223903c9d400bee3d4fa9b12e.zip |
Delombok with a relative path and in 'output to directory' mode would NPE. Fixes issue #241.
Diffstat (limited to 'test/core/src/lombok')
-rw-r--r-- | test/core/src/lombok/RunTestsViaDelombok.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/src/lombok/RunTestsViaDelombok.java b/test/core/src/lombok/RunTestsViaDelombok.java index bcaa66a2..9d9c4f23 100644 --- a/test/core/src/lombok/RunTestsViaDelombok.java +++ b/test/core/src/lombok/RunTestsViaDelombok.java @@ -53,8 +53,8 @@ public class RunTestsViaDelombok extends AbstractRunTests { } }); - delombok.addFile(file.getParentFile(), file.getName()); - delombok.setSourcepath(file.getParentFile().getAbsolutePath()); + delombok.addFile(file.getAbsoluteFile().getParentFile(), file.getName()); + delombok.setSourcepath(file.getAbsoluteFile().getParent()); delombok.setWriter(result); delombok.delombok(); } |