Problem with username fixed

*username and email shouldn't be parsing if there are no default value for repository
This commit is contained in:
Nadya Zabrodina
2013-11-26 19:24:36 +04:00
parent a4a8e3a679
commit 682c71dd1c
@@ -231,8 +231,11 @@ public class HgLogProvider implements VcsLogProvider {
if (userName == null) {
userName = System.getenv("HGUSER");
}
if (userName == null) {
return null;
}
Pair<String, String> userArgs = HgUtil.parseUserNameAndEmail(userName);
return userName == null ? null : myVcsObjectsFactory.createUser(userArgs.getFirst(), userArgs.getSecond());
return myVcsObjectsFactory.createUser(userArgs.getFirst(), userArgs.getSecond());
}
private static String prepareParameter(String paramName, String value) {