Avoid nested exceptions when trying to calculate toString() of an incompletely initialized project

GitOrigin-RevId: 4b7f7f3b1baa970d158cadfb5cee8d6935c85b3c
This commit is contained in:
Dmitry Jemerov
2019-06-13 03:30:15 +03:00
committed by intellij-monorepo-bot
parent 1ab5cead2b
commit 57a9155cf6
@@ -359,7 +359,7 @@ public class ProjectImpl extends PlatformComponentManagerImpl implements Project
public String toString() {
return "Project" +
(isDisposed() ? " (Disposed" + (temporarilyDisposed ? " temporarily" : "") + ")"
: " '" + getPresentableUrl() + "'") +
: " '" + (myComponentStore.isComputed() ? getPresentableUrl() : "<no component store>") + "'") +
" " + myName;
}