-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Constant NullReferenceException with Reduced Rates active #18
Comments
Is it only on reduced rates? I have all the ID's setup and that one is here: If the ID is wrong and doesn't exist though it should return a "???" as the info. What's the status ID when it hits here:? |
Reduced Rates was the only buff/debuff up at the time, but after looking at it again, I don't think it's related to that specific buff. The status ID was 0. StatusEffects did contain a key "0" which apparently had a value of null, as StatusEffects.ContainsKey(id) returned true. When I inspected StatusEffects with the debugger, it had a two or three keys with values of null at the beginning. I restarted the program, and StatusEffects no longer has those keys, so I am not sure what happened. It looks like StatusInfo() is called repeatedly with ID 0, and StatusEffects somehow got modified or corrupted. |
Code-wise though it shouldn't do that; so it's a mystery to me right now. There's a lock on the array and zero never exists so it should always return a default unknown status. I'll have to look at that more. |
I'll let you know exactly what the contents of StatusEffects look like if I see it happen again. |
When the company action Reduced Rates is active, I get repeated null reference exceptions in ActorEntityHelper.cs line 201. statusEntry.StatusID is 0, and StatusEffectHelper.StatusInfo() returns null.
The text was updated successfully, but these errors were encountered: