Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrescobar2010-09-21 20:19:13 -0400
committerRyan D. Brooks2010-09-21 20:19:13 -0400
commit9edb7ea14f3b6d4404028a3c9d28aa7bd03647df (patch)
treec24ef6bb521ad5f865b2f9c39945b7c856eabaec /plugins
parentbda208149714e59604790ed81e25ac53baac417b (diff)
downloadorg.eclipse.osee-9edb7ea14f3b6d4404028a3c9d28aa7bd03647df.tar.gz
org.eclipse.osee-9edb7ea14f3b6d4404028a3c9d28aa7bd03647df.tar.xz
org.eclipse.osee-9edb7ea14f3b6d4404028a3c9d28aa7bd03647df.zip
bug[ats_UNJKK]: Fix client-side search result loading when no match location data available
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/search/RemoteArtifactSearch.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/search/RemoteArtifactSearch.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/search/RemoteArtifactSearch.java
index 53de905b9e..d65ef43cc7 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/search/RemoteArtifactSearch.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/search/RemoteArtifactSearch.java
@@ -101,11 +101,15 @@ final class RemoteArtifactSearch extends AbstractArtifactSearchQuery {
try {
Artifact artifact = artifactMatch.getArtifact();
HashCollection<Attribute<?>, MatchLocation> matchData = artifactMatch.getMatchData();
- for (Attribute<?> attribute : matchData.keySet()) {
- for (MatchLocation matchLocation : matchData.getValues(attribute)) {
- resultCollector.acceptMatchData(artifact, attribute, matchLocation);
- lineMatches++;
+ if (!matchData.isEmpty()) {
+ for (Attribute<?> attribute : matchData.keySet()) {
+ for (MatchLocation matchLocation : matchData.getValues(attribute)) {
+ resultCollector.acceptMatchData(artifact, attribute, matchLocation);
+ lineMatches++;
+ }
}
+ } else {
+ resultCollector.acceptArtifactMatch(artifactMatch);
}
} catch (OseeCoreException ex) {
OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE,

Back to the top