brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aleds...@apache.org
Subject [1/2] incubator-brooklyn git commit: add check to avoid null pointer exception
Date Tue, 18 Aug 2015 13:28:43 GMT
Repository: incubator-brooklyn
Updated Branches:
  refs/heads/master 23889db5c -> fefaad633


add check to avoid null pointer exception


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/678079b9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/678079b9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/678079b9

Branch: refs/heads/master
Commit: 678079b9c1a7541c582084ec02ac4cf2d06e2377
Parents: f092e18
Author: Robert Moss <robertgmoss@gmail.com>
Authored: Tue Aug 18 12:28:47 2015 +0100
Committer: Robert Moss <robertgmoss@gmail.com>
Committed: Tue Aug 18 12:28:47 2015 +0100

----------------------------------------------------------------------
 .../brooklyn/entity/database/postgresql/PostgreSqlSshDriver.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/678079b9/software/database/src/main/java/org/apache/brooklyn/entity/database/postgresql/PostgreSqlSshDriver.java
----------------------------------------------------------------------
diff --git a/software/database/src/main/java/org/apache/brooklyn/entity/database/postgresql/PostgreSqlSshDriver.java
b/software/database/src/main/java/org/apache/brooklyn/entity/database/postgresql/PostgreSqlSshDriver.java
index 54b88a2..ed5359f 100644
--- a/software/database/src/main/java/org/apache/brooklyn/entity/database/postgresql/PostgreSqlSshDriver.java
+++ b/software/database/src/main/java/org/apache/brooklyn/entity/database/postgresql/PostgreSqlSshDriver.java
@@ -294,7 +294,7 @@ public class PostgreSqlSshDriver extends AbstractSoftwareProcessSshDriver
implem
 
         // Wait for commands to complete before running the creation script
         DynamicTasks.waitForLast();
-        if(entity.getConfig(PostgreSqlNode.INITIALIZE_DB)){
+        if(Boolean.TRUE.equals(entity.getConfig(PostgreSqlNode.INITIALIZE_DB))){
             initializeNewDatabase();
         }
         // Capture log file contents if there is an error configuring the database


Mime
View raw message