Skip to content

Commit

Permalink
GH-83 Fix NPE in repositories without configured proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
dzikoysk committed May 26, 2020
1 parent 051a857 commit ac1cab6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ public LookupService(Reposilite reposilite) {
}

protected Result<Context, String> serveProxied(Context context) {
if (proxiedExecutor == null) {
return Result.error("Proxied repositories are not enabled");
}

String uri = context.req.getRequestURI();

if (StringUtils.countOccurrences(uri, "/") < 4) {
Expand Down

0 comments on commit ac1cab6

Please sign in to comment.