Method of InitialUrlFilter class
public static boolean isInitialUrlMatch(String toCheck, String compareTo) {
contains
...
compareTo.charAt(compareTo.length() - 1)
...
This would lead to StringIndexOutOfBounds in case if `compareTo` is empty.
It would be better to check correctness of passed `compareTo` arg earlier
public static boolean isInitialUrlMatch(String toCheck, String compareTo) {
contains
...
compareTo.charAt(compareTo.length() - 1)
...
This would lead to StringIndexOutOfBounds in case if `compareTo` is empty.
It would be better to check correctness of passed `compareTo` arg earlier
- is cloned by
-
CODETOOLS-7903229 ParameterFilter - check initFiles for any File with an empty path
-
- New
-