Skip to content

Commit

Permalink
handle nil object in case of dumponly-mode (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
giovanniguido authored Jun 10, 2024
1 parent 8d80327 commit 7d85024
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ func processData(storageConnector *connector.StorageConnector, data map[string]i
logger.Error("processData: error marshalling output", "err", err)
}

storageConnector.ImportResults(mapKey, obj)
if storageConnector != nil {
storageConnector.ImportResults(mapKey, obj)
}
AWSResults[mapKey] = data[mapKey]
}

Expand Down

0 comments on commit 7d85024

Please sign in to comment.