[xwiki/xwiki-platform] 7f04fd: [Misc] Fix a NullPointerException reported by Sona...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: 7f04fd09cc3c17c97ba200a99a5866608c311d92 https://github.com/xwiki/xwiki-platform/commit/7f04fd09cc3c17c97ba200a99a586... Author: Vincent Massol <[email protected]> Date: 2026-07-27 (Mon, 27 Jul 2026) Changed paths: M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/XWiki.java M xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/XWikiTest.java Log Message: ----------- [Misc] Fix a NullPointerException reported by SonarQube in XWiki#parseTemplate() (#5980) * getMutableRenderingContext() returns null when the rendering context is not mutable, so guard both the forcing of the XHTML 1.0 target syntax and its restoration instead of dereferencing it unconditionally. Co-authored-by: Claude Opus 5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications