Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-852

NPE in Util.delete for read-protected directories

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2 branch, 2.0 branch, 3.0
    • 3.0M2
    • Core Library
    • None

    Description

      When attempting to delete a directory that doesn't have an execute permission for the user, the following NPE is thrown:

      java.lang.NullPointerException
      at org.apache.cayenne.util.Util.delete(Util.java:204)

      Correct behavior would be for Cayenne to simply return 'false' from the method

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: