NullPointerException in DefaultAttachmentManager When Moving an Attachment Due to Attachment Checkout Plugin
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
Operations such as deleting or creating pages with attachments fail with the following exception:
1
2
3
4
5
6
7
8
9
Cause
java.lang.NullPointerException
at com.atlassian.confluence.pages.DefaultAttachmentManager.moveAttachment(DefaultAttachmentManager.java:199)
Stack Trace:[hide]
java.lang.NullPointerException
at com.atlassian.confluence.pages.DefaultAttachmentManager.moveAttachment(DefaultAttachmentManager.java:199)
..
at com.atlassian.confluence.pages.DelegatorAttachmentManager.moveAttachment(DelegatorAttachmentManager.java:93)
Cause
The Attachment Checkout Plugin (no longer offered in the Atlassian Marketplace) is causing the problem.
Resolution
Disable or upgrade the plugin and report the issue on the project issue tracker.
Was this helpful?