Fix NullReferenceException. Damn how did I miss that before

rabi_display
wcko87 8 years ago
parent 07c2c233f8
commit 552d836623
  1. 18
      rabi_splitter_WPF/VariableExportConfig.cs

@ -107,19 +107,19 @@ namespace rabi_splitter_WPF
ExportVariable<int> ( ExportVariable<int> (
handle: "nextHammerExp", handle: "nextHammerExp",
displayName: "Next Hammer Level Exp", displayName: "Next Hammer Level Exp",
tracker: () => snapshot == null ? 0 : snapshot.nextHammer.Item1 tracker: () => snapshot?.nextHammer == null ? 0 : snapshot.nextHammer.Item1
), ),
ExportVariable<string> ( ExportVariable<string> (
handle: "nextHammerName", handle: "nextHammerName",
displayName: "Next Hammer Level Name (Short)", displayName: "Next Hammer Level Name (Short)",
tracker: () => snapshot == null ? "" : snapshot.nextHammer.Item2 tracker: () => snapshot?.nextHammer == null ? "" : snapshot.nextHammer.Item2
), ),
ExportVariable<string> ( ExportVariable<string> (
handle: "nextHammerNameLong", handle: "nextHammerNameLong",
displayName: "Next Hammer Level Name (Long)", displayName: "Next Hammer Level Name (Long)",
tracker: () => snapshot == null ? "" : snapshot.nextHammer.Item3 tracker: () => snapshot?.nextHammer == null ? "" : snapshot.nextHammer.Item3
), ),
ExportVariable<int> ( ExportVariable<int> (
@ -131,19 +131,19 @@ namespace rabi_splitter_WPF
ExportVariable<int> ( ExportVariable<int> (
handle: "nextRibbonExp", handle: "nextRibbonExp",
displayName: "Next Ribbon Level Exp", displayName: "Next Ribbon Level Exp",
tracker: () => snapshot == null ? 0 : snapshot.nextRibbon.Item1 tracker: () => snapshot?.nextRibbon == null ? 0 : snapshot.nextRibbon.Item1
), ),
ExportVariable<string> ( ExportVariable<string> (
handle: "nextRibbonName", handle: "nextRibbonName",
displayName: "Next Ribbon Level Name (Short)", displayName: "Next Ribbon Level Name (Short)",
tracker: () => snapshot == null ? "" : snapshot.nextRibbon.Item2 tracker: () => snapshot?.nextRibbon == null ? "" : snapshot.nextRibbon.Item2
), ),
ExportVariable<string> ( ExportVariable<string> (
handle: "nextRibbonNameLong", handle: "nextRibbonNameLong",
displayName: "Next Ribbon Level Name (Long)", displayName: "Next Ribbon Level Name (Long)",
tracker: () => snapshot == null ? "" : snapshot.nextRibbon.Item3 tracker: () => snapshot?.nextRibbon == null ? "" : snapshot.nextRibbon.Item3
), ),
ExportVariable<int> ( ExportVariable<int> (
@ -155,19 +155,19 @@ namespace rabi_splitter_WPF
ExportVariable<int> ( ExportVariable<int> (
handle: "nextCarrotExp", handle: "nextCarrotExp",
displayName: "Next Carrot Level Exp", displayName: "Next Carrot Level Exp",
tracker: () => snapshot == null ? 0 : snapshot.nextCarrot.Item1 tracker: () => snapshot?.nextCarrot == null ? 0 : snapshot.nextCarrot.Item1
), ),
ExportVariable<string> ( ExportVariable<string> (
handle: "nextCarrotName", handle: "nextCarrotName",
displayName: "Next Carrot Level Name (Short)", displayName: "Next Carrot Level Name (Short)",
tracker: () => snapshot == null ? "" : snapshot.nextCarrot.Item2 tracker: () => snapshot?.nextCarrot == null ? "" : snapshot.nextCarrot.Item2
), ),
ExportVariable<string> ( ExportVariable<string> (
handle: "nextCarrotNameLong", handle: "nextCarrotNameLong",
displayName: "Next Carrot Level Name (Long)", displayName: "Next Carrot Level Name (Long)",
tracker: () => snapshot == null ? "" : snapshot.nextCarrot.Item3 tracker: () => snapshot?.nextCarrot == null ? "" : snapshot.nextCarrot.Item3
), ),
ExportVariable<float> ( ExportVariable<float> (

Loading…
Cancel
Save