Skip to content

Commit

Permalink
NOJIRA - Fix NPE (#1508)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbco authored Jan 29, 2025
1 parent 9eb24cd commit 50c06fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func updateSite(ctx context.Context, d *schema.ResourceData, meta interface{}) d
log.Printf("Updating site %s", *site.Name)
site, resp, err = sp.updateSite(ctx, d.Id(), site)
if err != nil {
return resp, util.BuildAPIDiagnosticError(ResourceType, fmt.Sprintf("Failed to update site %s error: %s", *site.Name, err), resp)
return resp, util.BuildAPIDiagnosticError(ResourceType, fmt.Sprintf("Failed to update site %s error: %s", *currentSite.Name, err), resp)
}

return resp, nil
Expand Down

0 comments on commit 50c06fb

Please sign in to comment.