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

$xwiki.activitystream.searchEvents can return null in some occasion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 9.11.2, 10.1-rc-1
    • Event Stream
    • Unknown

    Description

      Steps to reproduce: execute the functional tests of the notifications module.

      Then, launch the generated wiki again, and write this page:

      {{activity authors="xwiki:XWiki.user2" /}}
      

      For some reason, we see this in the logs:

      Left side ($events.size()) of '>' operation has null value at 21:xwiki:Main.WebHome[line 873, column 22]
      

      Apparently, this line returns null for some reason, which is not expected. So the "if" just after actually compares null.size() to a number.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            gdelhumeau Guillaume Delhumeau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: