Uploaded image for project: 'Magnolia DX Core'
  1. Magnolia DX Core
  2. MGNLEE-493

Scheduled license check might throw NPE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 5.5.4
    • None
    • None

    Description

      When starting a vanilla Magnolia instance without entering a license, the scheduled license check might throw a NPE:

      [INFO] [talledLocalContainer] java.lang.NullPointerException
      [INFO] [talledLocalContainer] 	at info.magnolia.enterprise.commands.CheckLicenseCommand.getEditionName(CheckLicenseCommand.java:119)
      [INFO] [talledLocalContainer] 	at info.magnolia.enterprise.commands.CheckLicenseCommand.execute(CheckLicenseCommand.java:96)
      [INFO] [talledLocalContainer] 	at info.magnolia.commands.MgnlCommand.executeSynchronized(MgnlCommand.java:80)
      [INFO] [talledLocalContainer] 	at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:69)
      [INFO] [talledLocalContainer] 	at info.magnolia.module.scheduler.CommandJob.execute(CommandJob.java:110)
      [INFO] [talledLocalContainer] 	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      [INFO] [talledLocalContainer] 	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
      

      The code should account for situations where no license was entered yet – be more failsafe.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                pmundt Philip Mundt
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Bug DoR
                    Task DoD