usage targets may become invalid (EA-33613)

This commit is contained in:
peter
2012-02-10 15:33:35 +01:00
parent 4900a53a49
commit 01ee49fb8b
@@ -68,6 +68,11 @@ class UsageViewTreeCellRenderer extends ColoredTreeCellRenderer {
if (userObject instanceof UsageTarget) {
UsageTarget usageTarget = (UsageTarget)userObject;
if (!usageTarget.isValid()) {
append(UsageViewBundle.message("node.invalid"), ourInvalidAttributes);
return;
}
final ItemPresentation presentation = usageTarget.getPresentation();
LOG.assertTrue(presentation != null);
if (showAsReadOnly) {