From b301b92958586eaa1a55555e2ce1bcd1608d6fae Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Mon, 17 Oct 2016 14:51:32 +0200 Subject: [PATCH] WI-33574 Authentication popup doesn't appear in case password is missing --- .../src/com/intellij/credentialStore/CredentialAttributes.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-api/src/com/intellij/credentialStore/CredentialAttributes.kt b/platform/platform-api/src/com/intellij/credentialStore/CredentialAttributes.kt index 4498a7ea53c7..c156af30d340 100644 --- a/platform/platform-api/src/com/intellij/credentialStore/CredentialAttributes.kt +++ b/platform/platform-api/src/com/intellij/credentialStore/CredentialAttributes.kt @@ -62,7 +62,7 @@ fun CredentialAttributes(requestor: Class<*>, userName: String?) = CredentialAtt fun Credentials?.isFulfilled() = this != null && userName != null && !password.isNullOrEmpty() fun Credentials?.hasOnlyUserName() = this != null && userName != null && password.isNullOrEmpty() -fun Credentials?.isEmpty() = this == null || (userName == null && password == null) +fun Credentials?.isEmpty() = this == null || (userName == null && password.isNullOrEmpty()) // input will be cleared @JvmOverloads