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

[BUG] Error invoking callback | Exception has been thrown by the target of an invocation. #53

Open
crashzk opened this issue Mar 29, 2024 · 1 comment

Comments

@crashzk
Copy link

crashzk commented Mar 29, 2024

The end-of-map vote ends, but the map does not change to the map that won the vote.

Simply switch to the same map you are running on.

Log error:

2024-03-28 23:51:09.293 -03:00 [EROR] (cssharp:Core) Error invoking callback
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at cs2_rockthevote.ChangeMapManager.<ChangeNextMap>b__17_0() in /home/runner/work/cs2-rockthevote/cs2-rockthevote/Core/ChangeMapManager.cs:line 81
   at InvokeStub_Action.Invoke(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
   --- End of inner exception stack trace ---
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
   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

Plugin Version: 1.8.4
CSSharp Version: 202 (1.0.202+696ecad)

Map list:

de_mirage
de_vertigo
de_inferno
de_anubis
de_dust2
de_ancient
de_nuke
de_overpass

RockTheVote.json

@crashzk
Copy link
Author

crashzk commented Apr 20, 2024

@abnerfs fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant