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 05:06:50 UTC

[20/20] stratos git commit: Fix NPE occurs due to passing wrong partition object

Fix NPE occurs due to passing wrong partition object


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

Branch: refs/heads/master
Commit: 53ad7f4b5afdef4cbb4d2a49983c40c8b4450c28
Parents: ea98c48
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Tue Apr 7 08:27:36 2015 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Tue Apr 7 08:27:36 2015 +0530

----------------------------------------------------------------------
 .../apache/stratos/autoscaler/context/cluster/ClusterContext.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/53ad7f4b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/ClusterContext.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/ClusterContext.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/ClusterContext.java
index c9996dd..296e43f 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/ClusterContext.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/ClusterContext.java
@@ -297,7 +297,7 @@ public class ClusterContext extends AbstractClusterContext {
         //Creating cluster level partition context
         ClusterLevelPartitionContext clusterLevelPartitionContext = new ClusterLevelPartitionContext(
                 maxInstances,
-                partition,
+                partition3,
                 clusterInstance.getNetworkPartitionId());
         clusterLevelPartitionContext.setServiceName(cluster.getServiceName());
         clusterLevelPartitionContext.setProperties(cluster.getProperties());