NPE running ruby code
---------------------

                 Key: JRUBY-2752
                 URL: http://jira.codehaus.org/browse/JRUBY-2752
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1.2
         Environment: OSX leopard, apple java
            Reporter: André Cruz
            Assignee: Thomas E Enebo
         Attachments: tester2.rb

Running the attached code produces:
[EMAIL PROTECTED] ~/tmp]$ ./jruby-1.1.2/bin/jruby tester2.rb 
Exception in thread "main" java.lang.NullPointerException
        at 
org.jruby.javasupport.util.RuntimeHelpers.processBlockArgument(RuntimeHelpers.java:440)
        at ruby.Users.andre.tmp.tester2.method__1$RUBY$compute_seq(tester2.rb)
        at 
ruby.Users.andre.tmp.tester2Invokermethod__1$RUBY$compute_seqFixed3.call(Unknown
 Source)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:235)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:414)
        at ruby.Users.andre.tmp.tester2.block_2$RUBY$__block__(tester2.rb:24)
        at 
ruby.Users.andre.tmp.tester2BlockCallback$block_2$RUBY$__block__xx1.call(Unknown
 Source)
        at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:107)
        at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:88)
        at org.jruby.runtime.Block.yield(Block.java:109)
        at org.jruby.RubyRange.each(RubyRange.java:325)
        at org.jruby.RubyRangeInvoker$each_method_0_0.call(Unknown Source)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:139)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:312)
        at ruby.Users.andre.tmp.tester2.__file__(tester2.rb:23)
        at ruby.Users.andre.tmp.tester2.__file__(tester2.rb)
        at ruby.Users.andre.tmp.tester2.load(tester2.rb)
        at org.jruby.Ruby.runScript(Ruby.java:512)
        at org.jruby.Ruby.runNormally(Ruby.java:432)
        at org.jruby.Ruby.runFromMain(Ruby.java:312)
        at org.jruby.Main.run(Main.java:144)
        at org.jruby.Main.run(Main.java:89)
        at org.jruby.Main.main(Main.java:80)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to