You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by is...@apache.org on 2014/10/29 11:42:06 UTC

[2/2] git commit: fixing a NPE is ApplicationMonitor

fixing a NPE is ApplicationMonitor


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

Branch: refs/heads/4.0.0-grouping
Commit: caa6f1b155ba103664f889e17a5f56f5f8f916f5
Parents: 6fbb952
Author: Isuru Haththotuwa <is...@apache.org>
Authored: Wed Oct 29 16:11:39 2014 +0530
Committer: Isuru Haththotuwa <is...@apache.org>
Committed: Wed Oct 29 16:11:39 2014 +0530

----------------------------------------------------------------------
 .../stratos/autoscaler/monitor/application/ApplicationMonitor.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/caa6f1b1/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/application/ApplicationMonitor.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/application/ApplicationMonitor.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/application/ApplicationMonitor.java
index 35f4a70..dc53403 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/application/ApplicationMonitor.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/application/ApplicationMonitor.java
@@ -148,7 +148,7 @@ public class ApplicationMonitor extends ParentComponentMonitor {
 
         this.status = status;
         //notify the children about the state change
-        MonitorStatusEventBuilder.notifyChildren(this.parent, new ApplicationStatusEvent(status, appId));
+        MonitorStatusEventBuilder.notifyChildren(this, new ApplicationStatusEvent(status, appId));
     }
 
     @Override