You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2015/04/07 08:25:26 UTC

stratos git commit: Fix null check to check properties array of properties object

Repository: stratos
Updated Branches:
  refs/heads/master 7642b4a3a -> cf78b4c80


Fix null check to check properties array of properties object


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/cf78b4c8
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/cf78b4c8
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/cf78b4c8

Branch: refs/heads/master
Commit: cf78b4c80b9f5e9d6360322e75dafe81734473b1
Parents: 7642b4a
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Tue Apr 7 11:53:16 2015 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Tue Apr 7 11:53:16 2015 +0530

----------------------------------------------------------------------
 .../stratos/rest/endpoint/util/converter/ObjectConverter.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/cf78b4c8/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java
index cac69cb..4f1442a 100644
--- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java
+++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java
@@ -550,7 +550,7 @@ public class ObjectConverter {
         if (stubPartition.getProperties() != null) {
             List<org.apache.stratos.common.beans.cartridge.PropertyBean> propertyBeanList
                     = new ArrayList<org.apache.stratos.common.beans.cartridge.PropertyBean>();
-            if(stubPartition.getProperties() != null){
+            if(stubPartition.getProperties().getProperties() != null){
                 for (org.apache.stratos.cloud.controller.stub.Property stubProperty :
                         stubPartition.getProperties().getProperties()) {
                     if (stubProperty != null) {