[xwiki/xwiki-platform] 79a58e: [Misc] Fix additional SonarQube-reported NPE risks...
Branch: refs/heads/stable-18.6.x Home: https://github.com/xwiki/xwiki-platform Commit: 79a58e4063e02bbc74426894ee0f789610a2aded https://github.com/xwiki/xwiki-platform/commit/79a58e4063e02bbc74426894ee0f7... Author: Vincent Massol <[email protected]> Date: 2026-07-23 (Thu, 23 Jul 2026) Changed paths: M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/pdf/impl/FileSystemURLFactory.java M xwiki-platform-core/xwiki-platform-wysiwyg/xwiki-platform-wysiwyg-api/src/main/java/org/xwiki/wysiwyg/script/WysiwygEditorScriptService.java Log Message: ----------- [Misc] Fix additional SonarQube-reported NPE risks blocking the quality gate * FileSystemURLFactory: instead of null-checking the file mapping at each call site, make getFileMapping() lazily create and store the mapping in the context, so it's always non-null and callers' mutations still persist. * WysiwygEditorScriptService: handle the null source reference in a single place (the 4-arg overload) rather than short-circuiting in the deprecated 2-arg overload. (cherry picked from commit d33553c3cc47461cb9fc0d3a95b6b2369667c562) Co-authored-by: Claude Opus 4.8 (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