From f649cd0a5d3736f26e94edd7e624464a11fbb17c Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Wed, 12 May 2021 17:25:25 +0200
Subject: [PATCH] fix #130

---
 src/main/java/org/caosdb/server/query/Query.java | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/caosdb/server/query/Query.java b/src/main/java/org/caosdb/server/query/Query.java
index 52ba1e30..058fc619 100644
--- a/src/main/java/org/caosdb/server/query/Query.java
+++ b/src/main/java/org/caosdb/server/query/Query.java
@@ -663,13 +663,15 @@ public class Query implements QueryInterface, ToElementable, TransactionInterfac
     if (this.container != null && this.type == Type.FIND) {
       for (final IdVersionPair p : this.resultSet) {
 
-        final Entity e = new RetrieveEntity(p.id, p.version);
+        if (p.id > 99) {
+          final Entity e = new RetrieveEntity(p.id, p.version);
 
-        // if query has select-clause:
-        if (this.selections != null && !this.selections.isEmpty()) {
-          e.addSelections(this.selections);
+          // if query has select-clause:
+          if (this.selections != null && !this.selections.isEmpty()) {
+            e.addSelections(this.selections);
+          }
+          this.container.add(e);
         }
-        this.container.add(e);
       }
     }
     return this;
-- 
GitLab