Uploaded image for project: 'FtpServer'
  1. FtpServer
  2. FTPSERVER-145

NullPointerException in PropertiesUserManager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.0.0-M2
    • 1.0.0-M3
    • Core
    • None

    Description

      In the configure() method, userDataFile.getParentFile() can return null (eg. if file name is "toto.properties" rather than "./toto.properties"), which is not checked and can lead to a NullPointerException. A possible fix is to call userDataFile.getAbsoluteFile().getParentFile().

      Attachments

        Activity

          People

            niklas Niklas Therning
            lourdaiso Olivier Lourdais
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: