Merge "Fix possible NPE in LsUserRefs"

This commit is contained in:
Shawn Pearce 2013-08-22 15:48:40 +00:00 committed by Gerrit Code Review
commit 0958064aa0

View File

@ -109,7 +109,9 @@ public class LsUserRefs extends SshCommand {
throw new UnloggedFailure("fatal: Error opening: '"
+ projectControl.getProject().getNameKey());
} finally {
repo.close();
if (repo != null) {
repo.close();
}
}
}
}