You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2025/10/29 16:45:41 UTC
(activemq-artemis) branch main updated: NO-JIRA avoid NPE on PagingTest when no database profile is selected
This is an automated email from the ASF dual-hosted git repository.
clebertsuconic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/main by this push:
new 16cb327cb3 NO-JIRA avoid NPE on PagingTest when no database profile is selected
16cb327cb3 is described below
commit 16cb327cb33913b30795235164d9c195cf70d34f
Author: Clebert Suconic <cl...@apache.org>
AuthorDate: Wed Oct 29 12:25:44 2025 -0400
NO-JIRA avoid NPE on PagingTest when no database profile is selected
---
.../java/org/apache/activemq/artemis/tests/db/paging/PagingTest.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/db-tests/src/test/java/org/apache/activemq/artemis/tests/db/paging/PagingTest.java b/tests/db-tests/src/test/java/org/apache/activemq/artemis/tests/db/paging/PagingTest.java
index 1889cc7c3c..c4f517731d 100644
--- a/tests/db-tests/src/test/java/org/apache/activemq/artemis/tests/db/paging/PagingTest.java
+++ b/tests/db-tests/src/test/java/org/apache/activemq/artemis/tests/db/paging/PagingTest.java
@@ -164,7 +164,10 @@ public class PagingTest extends ParameterDBTestBase {
List<Object[]> databases = new ArrayList<>();
databases.add(new Object[] {Database.JOURNAL, true});
databases.add(new Object[] {Database.JOURNAL, false});
- databases.add(new Object[] {Database.randomDB(), false});
+ Database database = Database.randomDB();
+ if (database != null) {
+ databases.add(new Object[]{database, false});
+ }
return databases;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@activemq.apache.org
For additional commands, e-mail: commits-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact