Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-389

Wrong check and error message in PreferencesImpl when notification interval is undefined

    XMLWordPrintable

    Details

      Description

      Our Olat live system (and only that) shows an error on startup:
      2012-10-22 11:13:44,381 [main] INFO DefaultLoadEventListener - Error performing load command
      org.hibernate.PropertyAccessException: Exception occurred inside getter of org.olat.user.PreferencesImpl.notificationInterval
      ...
      Caused by: java.lang.NullPointerException
      at org.olat.user.PreferencesImpl.getNotificationInterval(PreferencesImpl.java:112)

      While investigating line 112, it is apparent that (short version ) if (notiMgr == null) notificationInterval = notiMgr.getDefaultNotificationInterval(); makes no sense.

      Perhaps it should be (notiMgr != null) ?

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              stephan Stephan Clemenz
              Tester:
              Florian Gnägi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 35 minutes
                35m