fix code smell

This commit is contained in:
Eduard Heimbuch
2020-11-10 10:51:20 +01:00
parent 4ed3a0aef6
commit c6d3a8054e
2 changed files with 2 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ public class SvnLookupCommand extends AbstractSvnCommand implements LookupComman
@Override
public <T> Optional<T> lookup(LookupCommandRequest request) {
try {
if ("propget".equalsIgnoreCase(request.getArgs()[0])) {
if (request.getArgs().length > 1 && "propget".equalsIgnoreCase(request.getArgs()[0])) {
return lookupProps(request);
}
} catch (SVNException e) {

View File

@@ -156,6 +156,7 @@ public class SvnRepositoryServiceProvider extends RepositoryServiceProvider
return new SvnModifyCommand(context, workingCopyFactory);
}
@Override
public LookupCommand getLookupCommand() { return new SvnLookupCommand(context);}
/**