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 2014/11/05 11:35:56 UTC

[34/50] [abbrv] git commit: fixing a NPE in AutoscalerRuleEvaluator

fixing a NPE in AutoscalerRuleEvaluator


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

Branch: refs/heads/docker-grouping-merge-wip
Commit: 2bda499801cf41893e7a711e11d222ed5cec2817
Parents: ef6cefd
Author: Isuru Haththotuwa <is...@apache.org>
Authored: Wed Nov 5 15:15:22 2014 +0530
Committer: Isuru Haththotuwa <is...@apache.org>
Committed: Wed Nov 5 15:15:49 2014 +0530

----------------------------------------------------------------------
 .../stratos/autoscaler/monitor/cluster/AbstractClusterMonitor.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/2bda4998/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/AbstractClusterMonitor.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/AbstractClusterMonitor.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/AbstractClusterMonitor.java
index 1fd9124..0cac9f2 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/AbstractClusterMonitor.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/AbstractClusterMonitor.java
@@ -92,6 +92,7 @@ public abstract class AbstractClusterMonitor extends Monitor implements Runnable
         this.clusterId = clusterId;
         this.serviceId = serviceId;
         this.autoscalerRuleEvaluator = autoscalerRuleEvaluator;
+        this.obsoleteCheckKnowledgeSession = autoscalerRuleEvaluator.getObsoleteCheckStatefulSession();
         this.scaleCheckKnowledgeSession = autoscalerRuleEvaluator.getScaleCheckStatefulSession();
         this.minCheckKnowledgeSession = autoscalerRuleEvaluator.getMinCheckStatefulSession();
         this.status = ClusterStatus.Created;