misc: Tweak NullReferenceException fixes

This commit is contained in:
KeatonTheBot
2025-11-23 13:43:15 -06:00
parent 35bced8527
commit 377805579b
23 changed files with 143 additions and 128 deletions
@@ -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));
}
}
}