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

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 1.0 B6
    • 1.0 B5
    • {Unused} Core
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: