Skip to content

Commit

Permalink
Compute: fix vmss npe issue (#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
xseeseesee authored Nov 6, 2020
1 parent fe207af commit 684c3b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public Observable<VirtualMachineScaleSetSku> typeConvertAsync(VirtualMachineScal
@Override
protected void initializeChildrenFromInner() {
this.extensions = new HashMap<>();
if (this.inner().virtualMachineProfile().extensionProfile() != null) {
if (this.inner().virtualMachineProfile() != null && this.inner().virtualMachineProfile().extensionProfile() != null) {
if (this.inner().virtualMachineProfile().extensionProfile().extensions() != null) {
for (VirtualMachineScaleSetExtensionInner inner : this.inner().virtualMachineProfile().extensionProfile().extensions()) {
this.extensions.put(inner.name(), new VirtualMachineScaleSetExtensionImpl(inner, this));
Expand Down

0 comments on commit 684c3b1

Please sign in to comment.