Skip to content

Commit c34613c

Browse files
committed
Fix nil pointer reference
Signed-off-by: Shiva Krishna, Merla <smerla@nvidia.com>
1 parent 9b292a6 commit c34613c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/platform/standalone/nimservice.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ func (r *NIMServiceReconciler) reconcilePVC(ctx context.Context, nimService *app
558558
if nimService.Spec.Storage.PVC.Create != nil && *nimService.Spec.Storage.PVC.Create {
559559
pvc, err = shared.ConstructPVC(nimService.Spec.Storage.PVC, metav1.ObjectMeta{Name: pvcName, Namespace: nimService.GetNamespace()})
560560
if err != nil {
561-
logger.Error(err, "Failed to construct pvc", "name", pvc.Name)
561+
logger.Error(err, "Failed to construct pvc", "name", pvcName)
562562
return nil, err
563563
}
564564
if err := controllerutil.SetControllerReference(nimService, pvc, r.GetScheme()); err != nil {

0 commit comments

Comments
 (0)