We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5594d7 commit e403331Copy full SHA for e403331
src/Prober/Lxns/Models/Record.cs
@@ -40,7 +40,30 @@ public Chart Chart
40
{
41
if (field is null)
42
43
- Song song = SongData.Shared.Songs.First(x => x.Id == Id);
+ Song? song = SongData.Shared.Songs.FirstOrDefault(x => x.Id == Id);
44
+ if (song is null)
45
+ {
46
+ field = new()
47
48
+ Type = Type,
49
+ Difficulty = Difficulty,
50
+ Level = Level,
51
+ LevelValue = 0.4,
52
+ Charter = string.Empty,
53
+ Version = 0,
54
+ Notes = new()
55
56
+ Break = 0,
57
+ Hold = 0,
58
+ Slide = 0,
59
+ Tap = 0,
60
+ Total = 0,
61
+ Touch = 0
62
+ }
63
+ };
64
+ return field;
65
66
+
67
field = (Type switch
68
69
SongTypes.Standard => song.Charts.Standard,
0 commit comments