Uploaded image for project: 'OpenFAST'
  1. OpenFAST
  2. FAST-47

byteVector having default value causes StringIndexOutOfBoundsException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Not a bug
    • Affects Version/s: 1.1.2
    • Fix Version/s: None
    • Component/s: Types
    • Labels:
    • Environment:
      Win x64, JDK 1.7

      Description

      having this line in the template file:
      <byteVector name="SecurityIDSource" id="22" presence="optional"><default value="4"/></byteVector>
      get exception in ByteUtil.convertHexStringToByteArray
      in line
      bytes[i / 2] = (byte) Integer.parseInt(hexString.substring(i, i + 2), 16);

        Attachments

          Activity

            People

            • Assignee:
              jacob_northey Jacob Northey
              Reporter:
              hesaid Dmitry Vulf
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: