mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 17:21:15 +01:00
misc: Tweak NullReferenceException fixes
This commit is contained in:
1 parent
e3ee28605d
commit
a6c0eabf49
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user