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

[FindBugs] Possible null pointer dereference of passivePorts in PassivePorts::<init>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.6, 1.1.0
    • Server

    Description

      Possible null pointer dereference of passivePorts in PassivePorts::<init>(final int[] passivePorts, boolean checkIfBound) (line 165)

      NPE can occur if passivePorts argument is null. But this code is internal and i can't find a place that can pass null to the method. Anyway, suppose the case with null better be handled (with creation of empty array)

      Attachments

        Issue Links

          Activity

            People

              niklas Niklas Therning
              bsp Sergey Vladimirov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: