boonwin / BoonwinsBattlegroundsTracker

A HDT Plugin to track your ranks and mmr change of the day and show it on stream.
MIT License
21 stars 9 forks source link

`System.NullReferenceException: Object reference not set to an instance of an object. #9

Closed Charge71 closed 3 years ago

Charge71 commented 3 years ago

Tracker version: 1.13.15 Plugin version: 0.0.9

System.NullReferenceException: Object reference not set to an instance of an object. in BoonwinsBattlegroundTracker.BgMatchData.SetMissingRace() in BoonwinsBattlegroundTracker.BgMatchData.<GameStart>d__28.MoveNext() --- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione --- in System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state) in System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) in System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

AnacondaHL commented 3 years ago

same issue, here's the output:

Make sure you are using the latest version of the Plugin and HDT.

System.NullReferenceException: Object reference not set to an instance of an object. at BoonwinsBattlegroundTracker.BgMatchData.SetMissingRace() at BoonwinsBattlegroundTracker.BgMatchData.d28.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b6_0(Object state) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

b00nwin commented 3 years ago

i made a new version, i dont really know what to do with this error code, when did this happen? at the beginning of a round?

Charge71 commented 3 years ago

Unfortunately I can't say, found it in the log at the end of a game...

b00nwin commented 3 years ago

you guys still have those? i think it might be happening when you get high rank and didnt enter a name in setting for leaderboard, then i saw it somewhere else, i need to look into it

Charge71 commented 3 years ago

Seeing this now (version 0.0.0.15):

System.ArgumentNullException: Value cannot be null.
Nome parametro: value
   in System.String.IndexOf(String value, Int32 startIndex, Int32 count, StringComparison comparisonType)
   in System.String.Contains(String value)
   in BoonwinsBattlegroundTracker.Leaderboard.<>c__DisplayClass12_0.<GetLeaderboard>b__1(Leaderboard d)
   in System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   in System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   in BoonwinsBattlegroundTracker.Leaderboard.<>c__DisplayClass12_0.<GetLeaderboard>b__0()
   in System.Threading.Tasks.Task.InnerInvoke()
   in System.Threading.Tasks.Task.Execute()
--- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione ---
   in System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   in System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   in BoonwinsBattlegroundTracker.Leaderboard.<GetLeaderboard>d__12.MoveNext()
--- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione ---
   in System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   in System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   in BoonwinsBattlegroundTracker.BgMatchData.<UpdateLeaderboardData>d__47.MoveNext()
--- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione ---
b00nwin commented 3 years ago

Seeing this now (version 0.0.0.15):

System.ArgumentNullException: Value cannot be null.
Nome parametro: value
   in System.String.IndexOf(String value, Int32 startIndex, Int32 count, StringComparison comparisonType)
   in System.String.Contains(String value)
   in BoonwinsBattlegroundTracker.Leaderboard.<>c__DisplayClass12_0.<GetLeaderboard>b__1(Leaderboard d)
   in System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   in System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   in BoonwinsBattlegroundTracker.Leaderboard.<>c__DisplayClass12_0.<GetLeaderboard>b__0()
   in System.Threading.Tasks.Task.InnerInvoke()
   in System.Threading.Tasks.Task.Execute()
--- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione ---
   in System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   in System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   in BoonwinsBattlegroundTracker.Leaderboard.<GetLeaderboard>d__12.MoveNext()
--- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione ---
   in System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   in System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   in BoonwinsBattlegroundTracker.BgMatchData.<UpdateLeaderboardData>d__47.MoveNext()
--- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione ---

i figured out what it is, you need to go to the plugin settings and activate leaderboard then you can write your name in the textbox after that the error should be gone, ill update it soon

Charge71 commented 3 years ago

How do I activate leaderboard? I can't see this configuration in the plugin settings. Thanks.

b00nwin commented 3 years ago

How do I activate leaderboard? I can't see this configuration in the plugin settings. Thanks.

https://i.imgur.com/LjTMjxC.png first click plugins then click on the name of plugin then click leaderboard then enter your name

Charge71 commented 3 years ago

Thank you, since I entered the name the error is not happened any more.