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

NPE in MetaClassHelper.getClassName when calling static methods

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-5
    • 1.0-RC-1
    • None
    • None
    • Any OS
      Any JDK
    • Patch

    Description

      when org.codehaus.groovy.runtime.Invoker invokes static method via invokeStaticMethod, it calls metaClass.invokeStaticMethod(null, method, asArray(arguments)), the null argument is subsequently passed to MetaClassHelper.getClassName where it causes NullPonterException

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            blackdrag Jochen Theodorou
            zregvart@gmail.com Zoran Regvart
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.25h
                0.25h
                Remaining:
                Remaining Estimate - 0.25h
                0.25h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment