mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Fix nomulus tool NPEs on login/logout commands when printing usage
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=149535358
This commit is contained in:
parent
0c7443815a
commit
b05afd2153
2 changed files with 5 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
|||
|
||||
package google.registry.tools;
|
||||
|
||||
import com.beust.jcommander.Parameters;
|
||||
import com.google.api.client.auth.oauth2.StoredCredential;
|
||||
import com.google.api.client.util.store.AbstractDataStoreFactory;
|
||||
import google.registry.util.FormattingLogger;
|
||||
|
@ -21,6 +22,7 @@ import java.io.IOException;
|
|||
import javax.inject.Inject;
|
||||
|
||||
/** Logout (invalidates OAuth credentials). */
|
||||
@Parameters(commandDescription = "Remove local OAuth credentials")
|
||||
class LogoutCommand implements Command {
|
||||
|
||||
private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue