summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVikas Mishra2012-03-12 06:21:57 (EDT)
committer Manik Kishore2012-06-19 07:20:44 (EDT)
commit0a281eb4718c1616b16830eefc8123cb63c6ddaa (patch)
tree102e5dce415755710895d4cda1d37ccda2292680
parentf1435e9e32484059c478fcc27bd50decfd481cdd (diff)
downloadorg.eclipse.stardust.ui.web-0a281eb4718c1616b16830eefc8123cb63c6ddaa.zip
org.eclipse.stardust.ui.web-0a281eb4718c1616b16830eefc8123cb63c6ddaa.tar.gz
org.eclipse.stardust.ui.web-0a281eb4718c1616b16830eefc8123cb63c6ddaa.tar.bz2
Jira-ID: CRNT-24106
corrected related search filter in case of null string descriptor value git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@54466 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/search/RelatedProcessSearchHelper.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/search/RelatedProcessSearchHelper.java b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/search/RelatedProcessSearchHelper.java
index 7486c5f..58d2df7 100644
--- a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/search/RelatedProcessSearchHelper.java
+++ b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/search/RelatedProcessSearchHelper.java
@@ -295,14 +295,11 @@ public class RelatedProcessSearchHelper
if (sourceDescriptors.containsKey(path.getId()))
{
Object value = sourceDescriptors.get(path.getId());
- if (null == value)
- {
- continue;
- }
- else if (value instanceof String && StringUtils.isEmpty(value.toString()))
+
+ if (null==value ||StringUtils.isEmpty(value.toString()))
{
filter.add(DataFilter.equalsCaseDescriptor(path.getId(), ""));
- }
+ }
else
{
filter.add(DataFilter.equalsCaseDescriptor(path.getId(), sourceDescriptors.get(path.getId())));