Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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 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,

Back to the top