Skip to content

NRE in Dialog_FormCaravan_DoBottomButtons.AddWarnings #46

@NoirFry

Description

@NoirFry

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions