Skip to content

fix: missing null check before accessing mainwindow.unityinstallationssource #221

@halinhtvn3a

Description

@halinhtvn3a

Description

The code accesses MainWindow.unityInstallationsSource without checking if it's null. This can cause a NullReferenceException when the window is opened before the main window has initialized the data source, leading to a crash.

Severity: medium
File: UnityLauncherPro/UpgradeWindow.xaml.cs

Expected Behavior

The code should handle this case properly to avoid unexpected errors or degraded quality.

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