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

NPE during "record" command with relative path file name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7.2
    • 1.7.6, 1.8-beta-3
    • None
    • None

    Description

      After starting the interactive shell, I executed

      record start foo.txt

      then shell exited with following error message

      Exception in thread "Thread-5" java.lang.NullPointerException: Cannot invoke method flush() on null object
      at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
      at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
      at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:32)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
      at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:54)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
      at org.codehaus.groovy.tools.shell.commands.RecordCommand$_closure2.doCall(RecordCommand.groovy:115)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      {lot more stack}

      Attachments

        Activity

          People

            roshandawrani Roshan Dawrani
            rareddy Ramesh Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: