Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-171

Null pointer in groovysh on ctrl-D

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-4
    • None
    • None

    Description

      If there is no script to evaluate, this error occurs.

      groovy> Caught: groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: null. Reason: java.lang.NullPointerException
      groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: null. Reason: java.lang.NullPointerException
      at org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:296)
      at groovy.lang.GroovyShell.evaluate(GroovyShell.java:230)
      at groovy.lang.GroovyShell.evaluate(GroovyShell.java:210)
      at groovy.ui.InteractiveShell.run(InteractiveShell.java:100)
      at groovy.ui.InteractiveShell.main(InteractiveShell.java:71)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:474)
      Caused by: java.lang.NullPointerException
      at org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:289)
      ... 11 more

      Attachments

        1. InteractiveShell.java.patch
          0.7 kB
          Yuri Schimke

        Activity

          People

            Unassigned Unassigned
            yuri Yuri Schimke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: