Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #344 from articulate/bugfix/safely-check-for-404
Browse files Browse the repository at this point in the history
Safely check for 404 when retrieving app
  • Loading branch information
quantumew authored Nov 19, 2019
2 parents e0387cf + f31aa3f commit 0ca9e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion okta/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func fetchAppById(id string, m interface{}, app okta.App) error {
client := getOktaClientFromMetadata(m)
_, response, err := client.Application.GetApplication(id, app, nil)
// We don't want to consider a 404 an error in some cases and thus the delineation
if response.StatusCode == 404 {
if response != nil && response.StatusCode == 404 {
app = nil
return nil
}
Expand Down

0 comments on commit 0ca9e65

Please sign in to comment.