Skip to content

Conversation

@njhill
Copy link
Contributor

@njhill njhill commented Jun 17, 2022

Motivation

In rare cases it's possible that the status exception passed to the EtcdClient#reauthRequired() has CANCELLED gRPC code but no cause, which causes an NPE.

Modifications

Add null check to EtcdClient#reauthRequired()

Result

Avoid NPE

Motivation

In rare cases it's possible that the exception passed to the EtcdClient#reauthRequired() has CANCELLED gRPC code but no cause, which causes an NPE.

Modifications

Add null check to EtcdClient#reauthRequired()

Result

Avoid NPE
Copy link

@joerunde joerunde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no unit test? 😉

@njhill njhill merged commit 2ccc57d into main Aug 8, 2022
@njhill njhill deleted the npe-check branch August 8, 2022 21:24
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.

3 participants