diff --git a/internal/util/util.go b/internal/util/util.go index ce146b2f..567a4595 100644 --- a/internal/util/util.go +++ b/internal/util/util.go @@ -268,7 +268,7 @@ func GetVolumeSnapshotContentForVolumeSnapshot(volSnap *snapshotv1api.VolumeSnap if err != nil { if err == wait.ErrWaitTimeout { - if snapshotContent.Status != nil && snapshotContent.Status.Error != nil { + if snapshotContent != nil && snapshotContent.Status != nil && snapshotContent.Status.Error != nil { log.Errorf("Timed out awaiting reconciliation of volumesnapshot, Volumesnapshotcontent %s has error: %v", snapshotContent.Name, *snapshotContent.Status.Error.Message) return nil, errors.Errorf("CSI got timed out with error: %v", *snapshotContent.Status.Error.Message) } else {