Skip to content
6 changes: 6 additions & 0 deletions server/src/main/java/com/cloud/api/ApiResponseHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,12 @@ private void addSystemVmInfoToIpResponse(NicVO nic, IPAddressResponse ipResponse
if (!isAdmin) {
return;
}
try {
nic.getInstanceId();
} catch (NullPointerException ex) {
return;
}

VirtualMachine vm = ApiDBUtils.findVMInstanceById(nic.getInstanceId());
if (vm == null) {
return;
Expand Down