Skip to content

Commit

Permalink
Fix nullability warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ElektroKill committed Jan 12, 2024
1 parent eaa16d2 commit 300fc34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnSpy/dnSpy/MainApp/UpdateService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static bool GetIsFinalRelease() {
var currentAsm = typeof(StartUpClass).Assembly;
try {
var infoVerAttr = currentAsm.GetCustomAttribute<AssemblyInformationalVersionAttribute>();
return infoVerAttr.InformationalVersion is null || !infoVerAttr.InformationalVersion.Contains("-");
return infoVerAttr?.InformationalVersion is null || !infoVerAttr.InformationalVersion.Contains("-");
}
catch {
}
Expand Down

0 comments on commit 300fc34

Please sign in to comment.