Skip to content

Commit 5c2615c

Browse files
committed
Fix to safely dereference optional value
1 parent 9bc1fec commit 5c2615c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

heroku/resource_heroku_app.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,9 @@ func (a *application) Update() error {
616616
a.App.Region = app.Region.Name
617617
a.App.Stack = app.BuildStack.Name
618618
a.App.GitURL = app.GitURL
619-
a.App.WebURL = app.WebURL
619+
if app.WebURL != nil {
620+
a.App.WebURL = *app.WebURL
621+
}
620622
a.App.Acm = app.Acm
621623
a.App.ID = app.ID
622624

0 commit comments

Comments
 (0)