CLOUDSTACK-7272: Router stop fails with NPE. Fixing it by making the hostId as Long object than native type long. The issue was the response was checking for getHostId() != null to populate attribute hypervisor. But since the hostId is declared as long it will never be null, resulting in the NPE when populating hypervisor. Fixed that

This commit is contained in:
Nitin Mehta 2014-08-06 18:06:33 -07:00
parent 8d27c19ae2
commit f424a04b0c

View File

@ -119,7 +119,7 @@ public class DomainRouterJoinVO extends BaseViewVO implements ControlledViewEnti
private String ip6Dns2 = null; private String ip6Dns2 = null;
@Column(name = "host_id", updatable = true, nullable = true) @Column(name = "host_id", updatable = true, nullable = true)
private long hostId; private Long hostId;
@Column(name = "host_uuid") @Column(name = "host_uuid")
private String hostUuid; private String hostUuid;