mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-01 21:51:03 +02:00
misc: Tweak NullReferenceException fixes
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user