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

NRE in Dialog_FormCaravan_DoBottomButtons.AddWarnings #46

Open
NoirFry opened this issue Jun 15, 2020 · 0 comments
Open

NRE in Dialog_FormCaravan_DoBottomButtons.AddWarnings #46

NoirFry opened this issue Jun 15, 2020 · 0 comments

Comments

@NoirFry
Copy link
Collaborator

NoirFry commented Jun 15, 2020

Not 100% sure why, but warnings is null here in my game.

public static void AddWarnings(Dialog_FormCaravan instance, ref List<string> warnings)

and will throw NRE later:

if(numPlatforms < numMechanoids)
{
    warnings.Add("WTH_Warning_NotEnoughPlatforms".Translate());

For now as a workaround, i just added null check and return. Seems like it's working fine.

if (warnings == null)
    return;
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

No branches or pull requests

1 participant