Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CoreConfig: Prevent "Error invoking callback" if core.json not found #576

Merged
merged 1 commit into from
Sep 19, 2024

Commits on Sep 18, 2024

  1. CoreConfig: Prevent "Error invoking callback" if core.json not found

    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
    ---> System.ArgumentNullException: Value cannot be null. (Parameter 'value')
    at System.ArgumentNullException.Throw(String paramName)
    at System.Globalization.CultureInfo.set_CurrentCulture(CultureInfo value)
    at CounterStrikeSharp.API.Core.Translations.WithTemporaryCulture.SetCulture(CultureInfo cultureInfo) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Translations/WithTemporaryCulture.cs:line 17
    at CounterStrikeSharp.API.Core.Translations.WithTemporaryCulture..ctor(CultureInfo culture) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Translations/WithTemporaryCulture.cs:line 12
    at CounterStrikeSharp.API.Core.Commands.CommandManager.HandleCommandInternal(Int32 playerSlot, IntPtr commandInfo) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Commands/CommandManager.cs:line 69
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
    at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
    --- End of inner exception stack trace ---
    at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
    at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at System.Delegate.DynamicInvokeImpl(Object[] args)
    at CounterStrikeSharp.API.Core.FunctionReference.<CreateWrappedCallback>b__18_0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 100
    markus-wa authored Sep 18, 2024
    Configuration menu
    Copy the full SHA
    1d5069f View commit details
    Browse the repository at this point in the history