mirror of https://github.com/apache/cloudstack.git
server: fix fail to list public ips of shared networks sometimes (#8624)
This commit is contained in:
parent
d77998c2d4
commit
875cd14919
|
|
@ -992,6 +992,12 @@ public class ApiResponseHelper implements ResponseGenerator {
|
|||
if (!isAdmin) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
nic.getInstanceId();
|
||||
} catch (NullPointerException ex) {
|
||||
return;
|
||||
}
|
||||
|
||||
VirtualMachine vm = ApiDBUtils.findVMInstanceById(nic.getInstanceId());
|
||||
if (vm == null) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue