Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1934

Optimize the init method in BaseAuditHandler class to avoid ArrayIndexOutOfBoundsException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: master
    • Fix Version/s: 1.0.0, master
    • Component/s: audit
    • Labels:
      None
    • Flags:
      Patch

      Description

      Optimize the init method in BaseAuditHandler class to avoid ArrayIndexOutOfBoundsException
      The follow in the init method " List<String> tokens = MiscUtil.toArray(propPrefix, ".");
      String finalToken = tokens.get(tokens.size() - 1);".
      in the init method we should add " if (tokens.size() > 1)" to avoid ArrayIndexOutOfBoundsException.

        Attachments

          Activity

            People

            • Assignee:
              peng.jianhua peng.jianhua
              Reporter:
              peng.jianhua peng.jianhua
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: