mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
disk resize NPE, if the new disk offering doesn't have tags, then NPE
This commit is contained in:
parent
0eb3944fc8
commit
d1a14fbf95
@ -757,7 +757,7 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (diskOffering.getTags() != null) {
|
if (diskOffering.getTags() != null) {
|
||||||
if (!newDiskOffering.getTags().equals(diskOffering.getTags())) {
|
if (newDiskOffering.getTags() == null || !newDiskOffering.getTags().equals(diskOffering.getTags())) {
|
||||||
throw new InvalidParameterValueException("Tags on new and old disk offerings must match");
|
throw new InvalidParameterValueException("Tags on new and old disk offerings must match");
|
||||||
}
|
}
|
||||||
} else if (newDiskOffering.getTags() != null) {
|
} else if (newDiskOffering.getTags() != null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user