*/\r
public static List<RevCommit> searchRevlogs(Repository repository, String objectId,\r
String value, final com.gitblit.Constants.SearchType type, int offset, int maxCount) {\r
- final String lcValue = value.toLowerCase();\r
List<RevCommit> list = new ArrayList<RevCommit>();\r
+ if (StringUtils.isEmpty(value)) {\r
+ return list;\r
+ }\r
if (maxCount == 0) {\r
return list;\r
}\r
if (!hasCommits(repository)) {\r
return list;\r
}\r
+ final String lcValue = value.toLowerCase();\r
try {\r
// resolve branch\r
ObjectId branchObject;\r