diff options
author | Charles Oliver Nutter <headius@headius.com> | 2018-10-11 12:05:15 -0500 |
---|---|---|
committer | Charles Oliver Nutter <headius@headius.com> | 2018-10-11 12:05:15 -0500 |
commit | 2261525efa9e32ea2556ad3bc34ead71cada5315 (patch) | |
tree | f8ff987ff32946dd00c01b17c227585bd98ffcca /ext | |
parent | e9429e55c27501dcd245c02c3b443f38e53305e1 (diff) | |
download | psych-2261525efa9e32ea2556ad3bc34ead71cada5315.tar.gz |
Fix NPE in initialization of PsychEmitter.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/java/PsychEmitter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/java/PsychEmitter.java b/ext/java/PsychEmitter.java index 2866a8a..b45b78e 100644 --- a/ext/java/PsychEmitter.java +++ b/ext/java/PsychEmitter.java @@ -332,7 +332,7 @@ public class PsychEmitter extends RubyObject { DumperOptions options = new DumperOptions(); IRubyObject io; - private static final Mark NULL_MARK = new Mark(null, 0, 0, 0, new int[0], 0); + private static final Mark NULL_MARK = new Mark("", 0, 0, 0, new int[0], 0); // Map style constants from Psych values (ANY = 0 ... FOLDED = 5) // to SnakeYaml values; see psych/nodes/scalar.rb. |