diff --git a/core/src/main/java/org/jruby/ext/psych/PsychParser.java b/core/src/main/java/org/jruby/ext/psych/PsychParser.java
index 6bb7612..33a98b5 100644
--- a/core/src/main/java/org/jruby/ext/psych/PsychParser.java
+++ b/core/src/main/java/org/jruby/ext/psych/PsychParser.java
@@ -229,7 +229,10 @@ public class PsychParser extends RubyObject {
     private void handleDocumentStart(ThreadContext context, DocumentStartEvent dse, boolean tainted, IRubyObject handler) {
         Ruby runtime = context.runtime;
         DumperOptions.Version _version = dse.getVersion();
-        Integer[] versionInts = _version == null ? null : _version.getArray();
+        Integer[] versionInts = null;
+        if (_version != null) {
+            versionInts = new Integer[] { _version.major(), _version.minor() };
+        }
         IRubyObject version = versionInts == null ?
             RubyArray.newArray(runtime) :
             RubyArray.newArray(runtime, runtime.newFixnum(versionInts[0]), runtime.newFixnum(versionInts[1]));
