Branch: refs/heads/claude/clever-feynman-mp1o6c-prereq-6273 Home: https://github.com/xwiki/xwiki-platform Commit: ac26ceb9aad894770dceee22b87bb0de4c819c47 https://github.com/xwiki/xwiki-platform/commit/ac26ceb9aad894770dceee22b87bb... Author: Vincent Massol <[email protected]> Date: 2026-09-02 (Wed, 02 Sep 2026) Changed paths: M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/DownloadAction.java M xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/web/DownloadActionTest.java Log Message: ----------- [Misc] Fix the SonarQube javabugs:S2259 issues of DownloadAction DownloadAction#getAttachment() dereferences the document it is given, which its caller reads from XWikiContext#getDoc() and which is null when the URL didn't resolve to a document. Return no attachment in that case: the caller already handles a null result by re-parsing the URL, so a missing context document now ends in the regular "attachment not found" response instead of a NullPointerException. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MpQRHF75UXk9WUFoQ1H2Qo To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications