Skip to content

Instantly share code, notes, and snippets.

@headius
Last active December 22, 2015 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/6535720 to your computer and use it in GitHub Desktop.
Save headius/6535720 to your computer and use it in GitHub Desktop.
diff --git a/core/src/main/java/org/jruby/RubyIO.java b/core/src/main/java/org/jruby/RubyIO.java
index 50691ce..7d3f94e 100644
--- a/core/src/main/java/org/jruby/RubyIO.java
+++ b/core/src/main/java/org/jruby/RubyIO.java
@@ -5214,6 +5214,10 @@ public class RubyIO extends RubyObject implements IOEncodable {
@Override
public void setEcopts(IRubyObject ecopts) {
+ if (ecopts == null) {
+ System.err.println("NULL ECOPTS DETECTED");
+ Thread.dumpStack();
+ }
this.ecopts = ecopts;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment