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

Do not print a stacktrace when failing to display the property of an Object from a page

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0 B5
    • Fix Version/s: 1.0 B6
    • Component/s: {Unused} Core
    • Labels:
      None
    • Similar issues:

      Description

      This happens when calling $doc.display(String fieldname, String type, String pref, BaseObject obj, XWikiContext context) with a fieldname that doesn't exist in the passed object. In that case a stacktrace containing a NPE is logged. It would be better to have a nicer message such as :

      Failed to display field [division] in [view] mode for Object [XWiki.Admin]
      

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              vmassol Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: