From 6b16e4b03cdf70650af61ec251068569c028f1b8 Mon Sep 17 00:00:00 2001 From: Olesya Smirnova Date: Fri, 11 Mar 2005 15:16:49 +0300 Subject: [PATCH] Assertions to investigate SCR44398 --- source/com/intellij/openapi/vcs/impl/AbstractVcsHelperImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/com/intellij/openapi/vcs/impl/AbstractVcsHelperImpl.java b/source/com/intellij/openapi/vcs/impl/AbstractVcsHelperImpl.java index 55da42241705..3dcdaddabd46 100644 --- a/source/com/intellij/openapi/vcs/impl/AbstractVcsHelperImpl.java +++ b/source/com/intellij/openapi/vcs/impl/AbstractVcsHelperImpl.java @@ -62,6 +62,7 @@ public class AbstractVcsHelperImpl extends AbstractVcsHelper implements ProjectC private static final Key KEY = Key.create("ErrorTreeViewPanel.KEY"); public void showErrors(final List abstractVcsExceptions, final String tabDisplayName) { + LOG.assertTrue(tabDisplayName != null, "tabDisplayName should not be null"); ApplicationManager.getApplication().invokeLater(new Runnable() { public void run() { if (myProject.isDisposed()) return; @@ -110,6 +111,7 @@ public class AbstractVcsHelperImpl extends AbstractVcsHelper implements ProjectC Content[] contents = messageView.getContents(); for (int i = 0; i < contents.length; i++) { Content content = contents[i]; + LOG.assertTrue(content != null); if (content.isPinned()) continue; if (tabDisplayName.equals(content.getDisplayName()) && content != notToRemove) { ErrorTreeView listErrorView = (ErrorTreeView)content.getComponent();