Merge "AccountValidator: Handle missing user branches"

This commit is contained in:
Edwin Kempin
2017-12-12 08:38:13 +00:00
committed by Gerrit Code Review
2 changed files with 8 additions and 1 deletions

View File

@@ -97,9 +97,11 @@ public class AccountConfig extends VersionedMetaData implements ValidationError.
/**
* Get the loaded account.
*
* @return loaded account.
* @return the loaded account, {@code null} if load didn't find the account because it doesn't
* exist
* @throws IllegalStateException if the account was not loaded yet
*/
@Nullable
public Account getAccount() {
checkLoaded();
return account;