mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-1207. UpdateNetwork API fails with NPE if the network offering is not being updated and is non-persistent.
This commit is contained in:
parent
bc493bd39b
commit
3c764c0be7
@ -1711,7 +1711,7 @@ public class NetworkServiceImpl extends ManagerBase implements NetworkService {
|
||||
|
||||
// 4) if network has been upgraded from a non persistent ntwk offering to a persistent ntwk offering,
|
||||
// implement the network if its not already
|
||||
if ( !oldNtwkOff.getIsPersistent() && networkOffering.getIsPersistent()) {
|
||||
if ( networkOfferingChanged && !oldNtwkOff.getIsPersistent() && networkOffering.getIsPersistent()) {
|
||||
if( network.getState() == Network.State.Allocated) {
|
||||
try {
|
||||
DeployDestination dest = new DeployDestination(_dcDao.findById(network.getDataCenterId()), null, null, null);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user