aboutsummaryrefslogtreecommitdiff
path: root/src/delombok/lombok
diff options
context:
space:
mode:
Diffstat (limited to 'src/delombok/lombok')
-rw-r--r--src/delombok/lombok/delombok/Delombok.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/delombok/lombok/delombok/Delombok.java b/src/delombok/lombok/delombok/Delombok.java
index 7e8220a0..a869f66d 100644
--- a/src/delombok/lombok/delombok/Delombok.java
+++ b/src/delombok/lombok/delombok/Delombok.java
@@ -202,7 +202,10 @@ public class Delombok {
}
public void setCharset(String charsetName) throws UnsupportedCharsetException {
-
+ if (charsetName == null) {
+ charset = Charset.defaultCharset();
+ return;
+ }
charset = Charset.forName(charsetName);
}