Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NPE with BLS #4

Merged
merged 1 commit into from Mar 20, 2023
Merged

Fix NPE with BLS #4

merged 1 commit into from Mar 20, 2023

Conversation

glowredman
Copy link
Member

Fixes GTNewHorizons/GT-New-Horizons-Modpack#12968

ProgressDisplayer#displayer is only nonnull during startup but resources can still be reloaded after that.

@glowredman glowredman requested review from a team March 20, 2023 18:57
}

try {
return displayer.get(null) != null;

Choose a reason for hiding this comment

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

Does displayer.get(null) actually work? I think it will throw argument exception

Copy link
Member Author

Choose a reason for hiding this comment

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

You can use null if the field is static

@Dream-Master Dream-Master merged commit e887176 into master Mar 20, 2023
1 check passed
@Dream-Master Dream-Master deleted the fix-bls-npe branch March 20, 2023 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants