Uploaded image for project: 'Magnolia Groovy Module'
  1. Magnolia Groovy Module
  2. MGNLGROOVY-102

When a compilation error occurs while saving a new script, trying to fix the error and save again throws NPE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.2.1
    • 2.2
    • None
    • None

    Description

      To reprodudce

      • create a Groovy class in the scrips repo by entering some invalid characters.
      • you'll get an action failure with the message "info.magnolia.ui.api.action.ActionExecutionException: untitledGroovyScript should declare at least one class named untitledGroovyScript"
      • fix the script by creating a proper class, e.g. class Foo{}
      • submit form again and boom! NPE (see linked issue)

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                fgrilli Federico Grilli
                fgrilli Federico Grilli
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD