misc: Tweak NullReferenceException fixes

This commit is contained in:
KeatonTheBot committed 2025-11-23 13:43:15 -06:00
1 parent 35bced8527
commit 377805579b
23 files changed
+143 -128

No files matched your search

@@ -164,7 +164,9 @@ namespace Ryujinx.Horizon.Kernel.Generators
where attributeArg.Expression.Kind() == SyntaxKind.NumericLiteralExpression
select (LiteralExpressionSyntax)attributeArg.Expression
into numericLiteral
select new SyscallIdAndName((int)numericLiteral.Token.Value, method.Identifier.Text));
let tokenValue = numericLiteral.Token.Value
where tokenValue != null
select new SyscallIdAndName((int)tokenValue, method.Identifier.Text));
}
}
}