Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-299

NPE while deleting an attachment from a renamed page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7.x
    • 2.8
    • Core & storage
    • None
    • JSPWiki 2.7.0-svn-49

    Description

      If you try to delete an attachment from a page that has been renamed, you will get the following NPE:

      Error Message
      An unknown exception java.lang.NullPointerException was caught by Error.jsp.
      Exception
      java.lang.NullPointerException
      Place where detected
      com.ecyrd.jspwiki.providers.CachingAttachmentProvider$CachedAttachmentCollector.cacheEntryRemoved(), line 459

      patch is attached (an extra NPE check)

      Attachments

        1. JSPWIKI-299.patch
          2 kB
          Harry Metske

        Activity

          People

            Unassigned Unassigned
            metskem Harry Metske
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: