[xwiki/xwiki-platform] 74adc7: [Misc] Fix the two NullPointerExceptions reported ...
Branch: refs/heads/claude/s2259-xwikidocument-npe Home: https://github.com/xwiki/xwiki-platform Commit: 74adc711af4f655a3ff4d0e1b4434aa01c80e6f0 https://github.com/xwiki/xwiki-platform/commit/74adc711af4f655a3ff4d0e1b4434... Author: Manuel Leduc <[email protected]> Date: 2026-08-18 (Tue, 18 Aug 2026) Changed paths: M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java Log Message: ----------- [Misc] Fix the two NullPointerExceptions reported by SonarCloud in XWikiDocument * BaseCollection#getXClass returns null when the context or the wiki is null, when the xclass reference is null, or when loading the xclass document fails. Two call sites dereferenced its result directly. * In displayPrettyName, return an empty pretty name when the xclass or the property cannot be resolved, instead of relying on the catch-all to swallow the NullPointerException. * In getUniqueLinkedEntityReferences, skip an xobject whose xclass cannot be resolved, instead of aborting the link extraction of the whole document. To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications