Skip to content

NRE になることがあるらしい? #8

Description

@veigr

情報元: #7

箇所: https://github.com/veigr/EventMapHpViewer/blob/master/EventMapHpViewer/ViewModels/Settings/SettingsViewModel.cs#L37

可能性としては KanColleClient.Current.IsStarted をトリガーにしているものの、ほぼ同タイミングで初期化される Models.Maps.MapInfos を読み込んでいるためだと考えられる。
手抜きせずに Models.Maps.MapInfos 自体が初期化通知をして、それをトリガーとすべき案件な気がする。

PR のように null 時に null を代入するだけではマップコンボボックスの中身が表示されなくなってしまうのでダメな気がする。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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