Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Avoid NPE while dereferencing statefulset status #1064

Merged
merged 1 commit into from
May 4, 2018

Conversation

squaremo
Copy link
Member

@squaremo squaremo commented May 4, 2018

Unlike other analogous types, the StatefulSet status has a *int64
pointer field for ObservedGeneration. Whatever the reason for this,
it means we need to check that it's not nil before dereferencing it.

Fixes #1062.

Unlike other analogous types, the StatefulSet status has a *int64
pointer field for `ObservedGeneration`. Whatever the reason for this,
it means we need to check that it's not nil before dereferencing it.
@squaremo squaremo merged commit cb31f1a into master May 4, 2018
@squaremo squaremo deleted the issue/1062-npe-statefulset branch May 4, 2018 13:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants