Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

Fix potential NullPointerException#1955

Merged
findepi merged 2 commits intotrinodb:masterfrom
findepi:pnpe
Nov 6, 2019
Merged

Fix potential NullPointerException#1955
findepi merged 2 commits intotrinodb:masterfrom
findepi:pnpe

Conversation

@findepi
Copy link
Member

@findepi findepi commented Nov 5, 2019

No description provided.

@cla-bot cla-bot bot added the cla-signed label Nov 5, 2019
@sopel39
Copy link
Member

sopel39 commented Nov 5, 2019

Could we have some test for it?

@findepi
Copy link
Member Author

findepi commented Nov 5, 2019

I didn't find a way to test it in a reasonable integration way.
i don't have a code/writer to create a file without this field.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe use Optional<Statistics> and have the caller do Optional.ofNullable(...).

Copy link
Member Author

Choose a reason for hiding this comment

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

good idea

@findepi findepi force-pushed the pnpe branch 2 times, most recently from 6447b35 to 18ea835 Compare November 6, 2019 09:19
@findepi findepi merged commit 7feccf9 into trinodb:master Nov 6, 2019
@findepi findepi deleted the pnpe branch November 6, 2019 13:46
@findepi findepi added this to the 325 milestone Nov 6, 2019
@findepi findepi mentioned this pull request Nov 6, 2019
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants