Skip to content

Commit

Permalink
APIGOV-26331 - check to make sure client is not nil (#684)
Browse files Browse the repository at this point in the history
* APIGOV-26331 - check to make sure client is not nil

* APIGOV-26331 - update based on PR comment
  • Loading branch information
sbolosan authored Sep 18, 2023
1 parent b3d7e0d commit f228bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/transaction/eventgenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (e *Generator) CreateEvents(summaryEvent LogEvent, detailEvents []LogEvent,
}

// Check to see if marketplace provisioning/subs is enabled
if agent.GetCentralClient().IsMarketplaceSubsEnabled() {
if agent.GetCentralClient() != nil && agent.GetCentralClient().IsMarketplaceSubsEnabled() {
err := e.processTxnSummary(summaryEvent)
if err != nil {
return nil, err
Expand Down

0 comments on commit f228bd0

Please sign in to comment.