[xwiki/xwiki-platform] cb7f99: [Misc] Address review feedback on NPE guards
Branch: refs/heads/misc-sonar-npe-guards Home: https://github.com/xwiki/xwiki-platform Commit: cb7f9962254334146742deed62c1b536aed483d6 https://github.com/xwiki/xwiki-platform/commit/cb7f9962254334146742deed62c1b... Author: Vincent Massol <[email protected]> Date: 2026-07-22 (Wed, 22 Jul 2026) Changed paths: 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] Address review feedback on NPE guards * 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. 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