Skip to content

[MAS-46399] Handling NPE on sync side#175

Open
dgupta03-byte wants to merge 1 commit intoyahoo:masterfrom
dgupta03-byte:dgup_MAS-46399
Open

[MAS-46399] Handling NPE on sync side#175
dgupta03-byte wants to merge 1 commit intoyahoo:masterfrom
dgupta03-byte:dgup_MAS-46399

Conversation

@dgupta03-byte
Copy link

Description

Handling NPE on sync side

Motivation and Context

cleanup() is invoked from channelInactive() and sets processor = null. During Netty pipeline teardown, channelInactive() may be called on this handler before exceptionCaught() (for example, if a decompression error is reported later or handler ordering differs). As a result, exceptionCaught() can be invoked after cleanup has already run and observe processor == null.

The if (processor != null) guard ensures that we do not call handleChannelException() after cleanup has completed.

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the code style of this project.
  • All new and existing tests passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant