You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by mr...@apache.org on 2017/11/29 22:50:16 UTC
ambari git commit: AMBARI-22551 : Getting NPE in
ServiceComponentImpl.updateComponentInfo() (mradhakrishnan)
Repository: ambari
Updated Branches:
refs/heads/branch-feature-AMBARI-14714 e83bf1bd9 -> f541d05d3
AMBARI-22551 : Getting NPE in ServiceComponentImpl.updateComponentInfo() (mradhakrishnan)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/f541d05d
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f541d05d
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f541d05d
Branch: refs/heads/branch-feature-AMBARI-14714
Commit: f541d05d313a1f4b2a242a6f2144a89ba45ca71b
Parents: e83bf1b
Author: Madhuvanthi Radhakrishnan <mr...@hortonworks.com>
Authored: Wed Nov 29 14:49:45 2017 -0800
Committer: Madhuvanthi Radhakrishnan <mr...@hortonworks.com>
Committed: Wed Nov 29 14:49:45 2017 -0800
----------------------------------------------------------------------
.../src/main/java/org/apache/ambari/server/state/ServiceImpl.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/f541d05d/ambari-server/src/main/java/org/apache/ambari/server/state/ServiceImpl.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/state/ServiceImpl.java b/ambari-server/src/main/java/org/apache/ambari/server/state/ServiceImpl.java
index 9dc77c1..02ea294 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/state/ServiceImpl.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/state/ServiceImpl.java
@@ -691,6 +691,7 @@ public class ServiceImpl implements Service {
serviceEntityPK.setServiceId(serviceId);
serviceDesiredStateEntityPK.setServiceId(serviceId);
clusterEntity.getClusterServiceEntities().add(serviceEntity);
+ serviceEntity.getServiceDesiredStateEntity().setServiceId(serviceId);
clusterDAO.merge(clusterEntity);
serviceGroupDAO.merge(serviceGroupEntity);
clusterServiceDAO.merge(serviceEntity);