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

Velocity macro evaluation exception caused by a NPE on the homepage of a workspace if it has no pretty name

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.3
    • Fix Version/s: 4.3.1
    • Component/s: {Unused} Workspaces
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      This is not really observable in most cases, but it should be fixed, just in case you end up with a workspace (or template) that does not have the pretty name set.

      Basically, a call to $msg.get($key, $nullValuedVariable) throws a NPE.

      Maybe the $msg.get call should be a bit more permissive, but that`s another topic.

        Attachments

          Activity

            People

            • Assignee:
              enygma Eduard Moraru
              Reporter:
              enygma Eduard Moraru
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: