FtpServer
  1. FtpServer
  2. FTPSERVER-37

null returned by FileSystemView.getFileObject() not allways handled

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When implementing a custom FileSystemView, if null is returned by the getFileObject() method, this is not explicitely handled in the following places and will throw a NullReferenceException:

      DELE.execute() (DELE.java:75)
      STOU.execute (STOU.java:80)

      This may not be relevent as of course the exception will get handled by the server further up the stack but I thought I should mention it as in all other calls to getFileObject(), a returned null is handled.

        Activity

        Hide
        Niklas Gustavsson added a comment -

        Closing at the issue seems to been fixed

        Show
        Niklas Gustavsson added a comment - Closing at the issue seems to been fixed
        Hide
        Rana Bhattacharyya added a comment -

        Thanks for pointing this. Modified DELE.java and STOU.java and commited in subversion.

        Show
        Rana Bhattacharyya added a comment - Thanks for pointing this. Modified DELE.java and STOU.java and commited in subversion.

          People

          • Assignee:
            Rana Bhattacharyya
            Reporter:
            John Wood
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development