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

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

      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)

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD