ContentService throws a NullPointerException when finding for ContentType.ATTACHMENT

Hello AnsgarNell,

I think you have the same problem as mentioned here Cannot use ContentService.find().withSpace() and ContentType.ATTACHMENT

So for you maybe the com.atlassian.confluence.api.service.content.AttachmentService (AttachmentService.AttachmentFinder (Atlassian Confluence 7.19.0 API)) is the answer.

Regards,
Christian