Skip to content

Commit c69cdad

Browse files
committed
[skip ci] fix issue 2779
1 parent 8bdb20a commit c69cdad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MinecraftClient/Program.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static class Program
5151
public static readonly string? BuildInfo = null;
5252

5353
private static Tuple<Thread, CancellationTokenSource>? offlinePrompt = null;
54-
private static IDisposable _sentrySdk;
54+
private static IDisposable? _sentrySdk = null;
5555
private static bool useMcVersionOnce = false;
5656
private static string settingsIniPath = "MinecraftClient.ini";
5757

@@ -213,7 +213,7 @@ static void Main(string[] args)
213213
}
214214

215215
if (!Config.Main.Advanced.EnableSentry)
216-
_sentrySdk.Dispose();
216+
_sentrySdk?.Dispose();
217217
}
218218

219219
//Other command-line arguments

0 commit comments

Comments
 (0)