From 08c5cdcf996fee6c208887771af37f6e419bd82f Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Tue, 5 Feb 2019 18:37:26 +0100 Subject: [PATCH] [ui] shows correct account label in error dialog when no password is provided (IDEA-201018) --- .../src/com/intellij/diagnostic/IdeErrorsDialog.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/diagnostic/IdeErrorsDialog.java b/platform/platform-impl/src/com/intellij/diagnostic/IdeErrorsDialog.java index 8bb8ed33028f..fbff401d0ecc 100644 --- a/platform/platform-impl/src/com/intellij/diagnostic/IdeErrorsDialog.java +++ b/platform/platform-impl/src/com/intellij/diagnostic/IdeErrorsDialog.java @@ -1,9 +1,8 @@ -// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.diagnostic; import com.intellij.CommonBundle; import com.intellij.ExtensionPoints; -import com.intellij.credentialStore.CredentialAttributesKt; import com.intellij.credentialStore.Credentials; import com.intellij.icons.AllIcons; import com.intellij.ide.DataManager; @@ -565,7 +564,7 @@ public class IdeErrorsDialog extends DialogWrapper implements MessagePoolListene if (submitter instanceof ITNReporter) { myCredentialsLabel.setVisible(true); Credentials credentials = ErrorReportConfigurable.getCredentials(); - if (CredentialAttributesKt.isFulfilled(credentials)) { + if (credentials != null && credentials.getUserName() != null) { myCredentialsLabel.setHtmlText(DiagnosticBundle.message("error.dialog.submit.named", credentials.getUserName())); } else {