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

Attempt to fix crash with only plasma fluid #2295

Closed
wants to merge 1 commit into from

Conversation

ALongStringOfNumbers
Copy link
Contributor

What

This PR fixes a crash when a material is only generating a plasma. The crash would arise because the plasma would not be finished generating, therefor calling material.getFluid would NPE. Therefore, if there is a queued builder for the material, we will fetch the material from there.

I am not really sure about this fix, as I don't konw if it is correct to be passing in getPrimaryKey, because it is nullable, and because I don't know if that would reference plasma for a plasma only fluid.

Outcome

Fixes a crash with plasma only materials

@ALongStringOfNumbers ALongStringOfNumbers added the type: bug Something isn't working label Dec 14, 2023
@ALongStringOfNumbers ALongStringOfNumbers requested a review from a team as a code owner December 14, 2023 02:50
@serenibyss serenibyss closed this Dec 17, 2023
@serenibyss serenibyss deleted the alson-plasma-fix branch December 17, 2023 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants