summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-02-21 08:59:40 (EST)
committer Stephan Born2012-04-24 10:13:03 (EDT)
commit9c64ed04bb2f1c6c50f0d3d2d98274d49d8dc56c (patch)
treefcff8c06a4f27cd1987aef5fab988a9ad2544e26
parentc8660cc4ed59752598f19a6e25b924e8a85ba960 (diff)
downloadorg.eclipse.stardust.ide-9c64ed04bb2f1c6c50f0d3d2d98274d49d8dc56c.zip
org.eclipse.stardust.ide-9c64ed04bb2f1c6c50f0d3d2d98274d49d8dc56c.tar.gz
org.eclipse.stardust.ide-9c64ed04bb2f1c6c50f0d3d2d98274d49d8dc56c.tar.bz2
CRNT-23157 JMS Application type, click on Restore default after select Response and add, throws exception
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@53958 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/applicationTypes/jms/JmsAccessPointsTreeContentProvider.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/applicationTypes/jms/JmsAccessPointsTreeContentProvider.java b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/applicationTypes/jms/JmsAccessPointsTreeContentProvider.java
index 4f30a33..b33ca47 100644
--- a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/applicationTypes/jms/JmsAccessPointsTreeContentProvider.java
+++ b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/applicationTypes/jms/JmsAccessPointsTreeContentProvider.java
@@ -81,9 +81,12 @@ public class JmsAccessPointsTreeContentProvider extends ModelElementNotification
{
public boolean select(Object toTest)
{
- AttributeType attribute = (AttributeType) toTest;
- return CarnotConstants.TYPE_ATT.equals(
- attribute.getName());
+ if (toTest instanceof AttributeType)
+ {
+ AttributeType attribute = (AttributeType) toTest;
+ return CarnotConstants.TYPE_ATT.equals(attribute.getName());
+ }
+ return false;
}
}, true)
{