Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20227

NullpointerException when removing a rating xobject

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      When removing a rating xobject from a document using the object editor, you get the following error:

      2022-10-13 17:10:57,834 [http-nio-8080-exec-4 - http://127.0.0.1:8080/xwiki/bin/save/XWiki/Replication/Admin] ERROR .o.i.DefaultObservationManager - Failed to send event [org.xwiki.bridge.event.DocumentUpdatingEvent@79e7bc3] to listener [org.xwiki.ratings.internal.averagerating.AverageRatingProtectionListener@37f84caa] 
      java.lang.NullPointerException: null
      	at org.xwiki.ratings.internal.averagerating.AverageRatingProtectionListener.onEvent(AverageRatingProtectionListener.java:74)
      	at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:320)
      	at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:285)
      	at com.xpn.xwiki.XWiki.beforeSave(XWiki.java:2015)
      	at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:2070)
      	at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:298)
      	at com.xpn.xwiki.web.SaveAndContinueAction.doWrappedAction(SaveAndContinueAction.java:126)
      	at com.xpn.xwiki.web.SaveAndContinueAction.action(SaveAndContinueAction.java:199)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:586)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:289)
      	at com.xpn.xwiki.web.LegacyActionServlet.service(LegacyActionServlet.java:114)
             ...
      

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: