diff options
author | rescobar | 2010-09-22 00:19:13 +0000 |
---|---|---|
committer | Ryan D. Brooks | 2010-09-22 00:19:13 +0000 |
commit | 9edb7ea14f3b6d4404028a3c9d28aa7bd03647df (patch) | |
tree | c24ef6bb521ad5f865b2f9c39945b7c856eabaec | |
parent | bda208149714e59604790ed81e25ac53baac417b (diff) | |
download | org.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
-rw-r--r-- | plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/search/RemoteArtifactSearch.java | 12 |
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 53de905b9ea..d65ef43cc79 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, |