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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.6, 1.1.0
    • Component/s: Server
    • Labels:

      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

              • Assignee:
                niklas Niklas Gustavsson
                Reporter:
                bsp Sergey Vladimirov
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: