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

Optimize the init method in BaseAuditHandler class to avoid ArrayIndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • master
    • 1.0.0, master
    • audit
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: