yielding without arguments yields java null and causes NPE
----------------------------------------------------------

                 Key: JRUBY-1305
                 URL: http://jira.codehaus.org/browse/JRUBY-1305
             Project: JRuby
          Issue Type: Bug
          Components: Interpreter
            Reporter: Marcin Mielżyński


This simple test case causes NPE:

def baz
    yield
end

baz{|e|p e.class}

The block got null, so calling the 'class' method on it will cause NPE.
MRI always operates on Qnil value, so it will print NilClass.


-- 
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