From 7de3c1cde3628c36b9c151026c736868054e4a3c Mon Sep 17 00:00:00 2001 From: Sergey Vasiliev Date: Mon, 21 Nov 2005 12:27:20 +0300 Subject: [PATCH] fixed test --- source/com/intellij/util/xml/tree/BaseDomElementNode.java | 3 ++- source/com/intellij/util/xml/tree/DomModelTreeView.java | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/source/com/intellij/util/xml/tree/BaseDomElementNode.java b/source/com/intellij/util/xml/tree/BaseDomElementNode.java index 194c3f943f..e6872f770e 100644 --- a/source/com/intellij/util/xml/tree/BaseDomElementNode.java +++ b/source/com/intellij/util/xml/tree/BaseDomElementNode.java @@ -75,7 +75,8 @@ public class BaseDomElementNode extends AbstractDomElementNode { } protected boolean showGenericValues() { - return myDomElement.getRoot().getUserData(SHOW_PROPERTIES_KEY); + final Boolean showProperties = myDomElement.getRoot().getUserData(SHOW_PROPERTIES_KEY); + return showProperties == null ? false: showProperties; } public Object[] getEqualityObjects() { diff --git a/source/com/intellij/util/xml/tree/DomModelTreeView.java b/source/com/intellij/util/xml/tree/DomModelTreeView.java index 1f5fbe3d83..2e83ee720a 100644 --- a/source/com/intellij/util/xml/tree/DomModelTreeView.java +++ b/source/com/intellij/util/xml/tree/DomModelTreeView.java @@ -72,7 +72,9 @@ public class DomModelTreeView extends Wrapper { } public boolean isSelected(AnActionEvent e) { - return myRootElement.getRoot().getUserData(BaseDomElementNode.SHOW_PROPERTIES_KEY); + final Boolean showGenericValues = myRootElement.getRoot().getUserData(BaseDomElementNode.SHOW_PROPERTIES_KEY); + + return showGenericValues == null ? false: showGenericValues; } public void setSelected(AnActionEvent e, boolean state) { -- 2.11.4.GIT