-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Because system chaincode sometimes executes in a channel-less context, there is a broken path throughout the chaincode package where despite being passed as a parameter, the query executor is nil. This path has been significantly cleaned up in the v2.0 code, though, so long as system chaincode exists which attempts to execute without a channel context, we will have this problem. This small PR simply adds extra nil checks to prevent a crash in the cases where a nil query executor makes it to this point in the code path. Signed-off-by: Jason Yellick <[email protected]>
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters