From e56123636f2085a930a5e8f9199d384086f241f9 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Thu, 25 Nov 2021 18:01:18 +0100 Subject: [PATCH] Fixed bug --- .../postgresql/AccountingPersistenceQueryPostgreSQL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/accounting/analytics/persistence/postgresql/AccountingPersistenceQueryPostgreSQL.java b/src/main/java/org/gcube/accounting/analytics/persistence/postgresql/AccountingPersistenceQueryPostgreSQL.java index f424b78..76354e2 100644 --- a/src/main/java/org/gcube/accounting/analytics/persistence/postgresql/AccountingPersistenceQueryPostgreSQL.java +++ b/src/main/java/org/gcube/accounting/analytics/persistence/postgresql/AccountingPersistenceQueryPostgreSQL.java @@ -215,7 +215,7 @@ public class AccountingPersistenceQueryPostgreSQL implements AccountingPersisten orderingProperty = AccountingPersistenceQuery.getDefaultOrderingProperties(clz); } - if(limit<1) { + if(limit!= null && limit<1) { limit = DEFAULT_TOP_LIMIT; }