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

        John Wood created issue -
        Niklas Gustavsson made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Rana Bhattacharyya [ rana_b ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development