You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by mp...@apache.org on 2015/11/25 16:03:23 UTC

ambari git commit: AMBARI-14066. Ambari Server Upgrade from 2.1.2 to 2.1.3.0 fails with NPE. (mpapirkovskyy)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 d566827d8 -> 90ee4504a


AMBARI-14066. Ambari Server Upgrade from 2.1.2 to 2.1.3.0 fails with NPE. (mpapirkovskyy)


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

Branch: refs/heads/branch-2.1
Commit: 90ee4504a4ca598e436944a3a4f59f5278080769
Parents: d566827
Author: Myroslav Papirkovskyy <mp...@hortonworks.com>
Authored: Wed Nov 25 16:20:17 2015 +0200
Committer: Myroslav Papirkovskyy <mp...@hortonworks.com>
Committed: Wed Nov 25 17:02:37 2015 +0200

----------------------------------------------------------------------
 .../java/org/apache/ambari/server/orm/entities/UpgradeEntity.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/90ee4504/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UpgradeEntity.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UpgradeEntity.java b/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UpgradeEntity.java
index 04f753e..3f1a52b 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UpgradeEntity.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UpgradeEntity.java
@@ -210,7 +210,7 @@ public class UpgradeEntity {
    * @return possibility to process downgrade
    */
   public Boolean isDowngradeAllowed() {
-    return downgrade_allowed != 0;
+    return downgrade_allowed != null ? (downgrade_allowed != 0) : null;
   }
 
   /**