CLOUDSTACK-8641 - When calling "update hostpassword" API it throws NPE if the update_passwd_on_host if not informed

- On getUpdatePasswdOnHost() method, if updatePasswdOnHost is null then return false.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
wilderrodrigues 2015-07-16 12:13:27 +02:00 committed by Rohit Yadav
parent b29d8e7280
commit c3c8baf259
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ public class UpdateHostPasswordCmd extends BaseCmd {
}
public Boolean getUpdatePasswdOnHost() {
return updatePasswdOnHost;
return updatePasswdOnHost == null ? false : true;
}
public String getPassword() {