From 57a9155cf69541ddb140a0421e29c9f2ccfd0b01 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 12 Jun 2019 17:15:31 +0200 Subject: [PATCH] Avoid nested exceptions when trying to calculate toString() of an incompletely initialized project GitOrigin-RevId: 4b7f7f3b1baa970d158cadfb5cee8d6935c85b3c --- .../src/com/intellij/openapi/project/impl/ProjectImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/project/impl/ProjectImpl.java b/platform/platform-impl/src/com/intellij/openapi/project/impl/ProjectImpl.java index bf48fb66afc9..80b36843b9e6 100644 --- a/platform/platform-impl/src/com/intellij/openapi/project/impl/ProjectImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/project/impl/ProjectImpl.java @@ -359,7 +359,7 @@ public class ProjectImpl extends PlatformComponentManagerImpl implements Project public String toString() { return "Project" + (isDisposed() ? " (Disposed" + (temporarilyDisposed ? " temporarily" : "") + ")" - : " '" + getPresentableUrl() + "'") + + : " '" + (myComponentStore.isComputed() ? getPresentableUrl() : "") + "'") + " " + myName; }