Content must not be null

Samebug tips1

If you're unit testing, you should instantiate only the service and mock the dependencies. If you're testing integration, you should add all the mocking to the configurations file.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web22453

  • via Atlassian JIRA by Vanessa Roberts, 11 months ago
    Content must not be null
  • Content must not be null
  • via GitHub by Creeperface01
    , 11 months ago
    content must not be null
  • Stack trace

    • java.lang.IllegalArgumentException: Content must not be null at org.springframework.util.Assert.notNull( at com.atlassian.confluence.pages.attachments.CachingAttachmentDao.getLatestAttachment( at com.atlassian.confluence.pages.DefaultAttachmentManager.getAttachment( at com.atlassian.confluence.pages.DefaultAttachmentManager.getAttachment( at com.atlassian.confluence.pages.DelegatorAttachmentManager.getAttachment( at com.atlassian.confluence.pages.CachingAttachmentManager.getAttachment(

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 month ago
    Unknown user
    Once, 1 month ago
    18 times, 1 month ago
    16 times, 1 month ago
    Once, 2 months ago
    190 more bugmates