Commons VFS
  1. Commons VFS
  2. VFS-315

NullPointerExceptions in WebdavFileObject when fetching properties

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Labels:
      None
    • Environment:

      windows with IIS as webdav host.

      Description

      The WebdavFileObject sometimes throws a NullPointerException in doGetAttributes in the body of the second loop. For some reason, when it goes out to resolve the property, it sometimes is returned as a null DavProperty. When the DavProperty's getName method is called, there's a NPE.

      1. NPE.patch
        1 kB
        David Hausladen

        Activity

        Hide
        David Hausladen added a comment -

        This patch may be overkill in terms of addressing the specific problem I observed. I didn't feel like dealing with any other NPEs, so I checked all the possible ones for that line.

        Show
        David Hausladen added a comment - This patch may be overkill in terms of addressing the specific problem I observed. I didn't feel like dealing with any other NPEs, so I checked all the possible ones for that line.
        Hide
        James Carman added a comment -

        Please provide a test case that exhibits the issue.

        Show
        James Carman added a comment - Please provide a test case that exhibits the issue.
        Hide
        Ralph Goers added a comment - - edited

        I applied the patch and verified that the Webdav functional test still works properly. I reviewed the patch and it looks good to me. Please verify and close.

        Show
        Ralph Goers added a comment - - edited I applied the patch and verified that the Webdav functional test still works properly. I reviewed the patch and it looks good to me. Please verify and close.
        Hide
        David Hausladen added a comment -

        Thanks. Sorry I never got around to the test case.

        Show
        David Hausladen added a comment - Thanks. Sorry I never got around to the test case.

          People

          • Assignee:
            Unassigned
            Reporter:
            David Hausladen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development