Skip to content

Commit

Permalink
Fix NPE in initialization of PsychEmitter.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Oct 11, 2018
1 parent e9429e5 commit 2261525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/java/PsychEmitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ private void initEmitter(ThreadContext context, IRubyObject _encoding) {
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.
Expand Down

0 comments on commit 2261525

Please sign in to comment.