Commons Net
  1. Commons Net
  2. NET-428

SubnetUtils throws ArrayIndexOutOfBoundsException for new SubnetUtils( "1.2.3.4/32" ).getInfo().getAllAddresses()

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.1
    • Component/s: None
    • Labels:
      None

      Description

      new SubnetUtils( "1.2.3.4/32" ).getInfo().getAllAddresses() throws

      Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
      $SubnetInfo.getAllAddresses(SubnetUtils.java:166)

      Similarly for /31

      It would make more sense to return an empty array.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Sebb
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development