This is an automated email from the ASF dual-hosted git repository.

agingade pushed a commit to branch feature/GEODE-4947
in repository https://gitbox.apache.org/repos/asf/geode.git

commit ded7309a08f6acf54e1844598164ae235a07c8ea
Author: Nick Reich <nre...@pivotal.io>
AuthorDate: Thu Mar 29 15:30:18 2018 -0700

    GEODE-4947: Protect against having no connection rule
---
 .../java/org/apache/geode/connectors/jdbc/MySqlJdbcDistributedTest.java | 2 +-
 .../org/apache/geode/connectors/jdbc/PostgresJdbcDistributedTest.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/geode-connectors/src/test/java/org/apache/geode/connectors/jdbc/MySqlJdbcDistributedTest.java
 
b/geode-connectors/src/test/java/org/apache/geode/connectors/jdbc/MySqlJdbcDistributedTest.java
index 347b03d..2576126 100644
--- 
a/geode-connectors/src/test/java/org/apache/geode/connectors/jdbc/MySqlJdbcDistributedTest.java
+++ 
b/geode-connectors/src/test/java/org/apache/geode/connectors/jdbc/MySqlJdbcDistributedTest.java
@@ -56,7 +56,7 @@ public class MySqlJdbcDistributedTest extends 
JdbcDistributedTest {
 
   @Override
   public String getConnectionUrl() {
-    return dbRule.getConnectionUrl();
+    return dbRule == null ? null : dbRule.getConnectionUrl();
   }
 
   @Override
diff --git 
a/geode-connectors/src/test/java/org/apache/geode/connectors/jdbc/PostgresJdbcDistributedTest.java
 
b/geode-connectors/src/test/java/org/apache/geode/connectors/jdbc/PostgresJdbcDistributedTest.java
index 25f33c9..6643cbe 100644
--- 
a/geode-connectors/src/test/java/org/apache/geode/connectors/jdbc/PostgresJdbcDistributedTest.java
+++ 
b/geode-connectors/src/test/java/org/apache/geode/connectors/jdbc/PostgresJdbcDistributedTest.java
@@ -56,7 +56,7 @@ public class PostgresJdbcDistributedTest extends 
JdbcDistributedTest {
 
   @Override
   public String getConnectionUrl() {
-    return dbRule.getConnectionUrl();
+    return dbRule == null ? null : dbRule.getConnectionUrl();
   }
 
   @Override

-- 
To stop receiving notification emails like this one, please contact
aging...@apache.org.

Reply via email to