Skip to content

Commit

Permalink
bugfix: potential null pointer error in transfer queue processor (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxing1292 authored Feb 1, 2018
1 parent 8cc9319 commit 051f9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/history/transferQueueProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,10 +606,10 @@ func (t *transferQueueProcessorImpl) processSignalExecution(task *persistence.Tr
var context *workflowExecutionContext
var release releaseWorkflowExecutionFunc
context, release, err = t.cache.getOrCreateWorkflowExecution(domainID, execution)
defer release()
if err != nil {
return err
}
defer release()

var msBuilder *mutableStateBuilder
msBuilder, err = context.loadWorkflowExecution()
Expand Down

0 comments on commit 051f9de

Please sign in to comment.