NPE Loading OSEnvironment on Windows
------------------------------------

                 Key: JRUBY-5525
                 URL: http://jira.codehaus.org/browse/JRUBY-5525
             Project: JRuby
          Issue Type: Bug
          Components: Windows
    Affects Versions: JRuby 1.6RC1
            Reporter: Christopher Williams


I upgraded the embedded JRuby to 1.6.0 RC 1 in Aptana Studio beta 3. We're 
getting reports of NPEs from Windows users when the Ruby runtime is getting 
instantiated:

!STACK 0
java.lang.NullPointerException
        at 
org.jruby.environment.OSEnvironment.getAsMapOfRubyStrings(OSEnvironment.java:82)
        at 
org.jruby.environment.OSEnvironment.getEnvironmentVariableMap(OSEnvironment.java:60)
        at org.jruby.RubyGlobal.defineGlobalEnvConstants(RubyGlobal.java:338)
        at org.jruby.RubyGlobal.createGlobals(RubyGlobal.java:317)
        at org.jruby.Ruby.init(Ruby.java:1101)
        at org.jruby.Ruby.newInstance(Ruby.java:180)
        at 
org.jruby.embed.internal.LocalContext.getRuntime(LocalContext.java:72)
        at 
org.jruby.embed.internal.SingletonLocalContextProvider.getRuntime(SingletonLocalContextProvider.java:57)
        at 
org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.runParser(EmbedRubyRuntimeAdapterImpl.java:167)
        at 
org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.parse(EmbedRubyRuntimeAdapterImpl.java:94)
        at 
org.jruby.embed.ScriptingContainer.parse(ScriptingContainer.java:1154)
        at 
org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1214)

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