[xwiki/xwiki-platform] 213dd3: [Misc] Fix a NullPointerException reported by Sona...
Branch: refs/heads/sonar-npe-parsetemplate-skin Home: https://github.com/xwiki/xwiki-platform Commit: 213dd37165bccc924b6ee9ae121835b58f822bec https://github.com/xwiki/xwiki-platform/commit/213dd37165bccc924b6ee9ae12183... Author: Vincent Massol <[email protected]> Date: 2026-07-26 (Sun, 26 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() * 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