mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
DeleteLoadBalancer on invalid id throws NPE
This commit is contained in:
parent
b329f61782
commit
68f9ab5c5c
@ -99,6 +99,10 @@ public class DeleteLoadBalancerRuleCmd extends BaseAsyncCmd {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Long getSyncObjId() {
|
public Long getSyncObjId() {
|
||||||
return _lbService.findById(id).getNetworkId();
|
LoadBalancer lb = _lbService.findById(id);
|
||||||
|
if (lb == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return lb.getNetworkId();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user