Skip to content

Commit

Permalink
Fixes #439 : String index out of range: 9
Browse files Browse the repository at this point in the history
  • Loading branch information
ghusta authored and slachiewicz committed Sep 11, 2021
1 parent f38c23d commit 0ceeb2e
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -373,10 +373,7 @@ private static RuleSet getRulesViaWagon(String rulesUri, Log logger, String serv
}

static boolean isClasspathUri(String uri) {
boolean startsWithProtocol = null != uri && uri.startsWith(CLASSPATH_PROTOCOL);
boolean hasColonNext = null != uri && uri.charAt(CLASSPATH_PROTOCOL.length()) == ':';

return startsWithProtocol && hasColonNext;
return (uri != null && uri.startsWith(CLASSPATH_PROTOCOL + ":"));
}

/**
Expand Down

0 comments on commit 0ceeb2e

Please sign in to comment.