MonoBehaviour StartCoroutine throwing NullReferenceException
Hi Unity folks, I am getting an error where my start coroutine giving the null reference exception. My script is attached to a game object on a prefab which is already in the scene, not destroyed or not disable any moment of the game. But still I am getting this error. it is happening on less occasions but quite reproducible. Let me know any possible reason and solution if guys have. Thanks in advance! Please help me with this. I have been stuck for days to finding a solution for this. This is quite frustrating.
02-07 11:26:57.664 29922 20676 E Unity : NullReferenceException: Object reference not set to an instance of an object.
02-07 11:26:57.664 29922 20676 E Unity : at UnityEngine.MonoBehaviour.StartCoroutine (System.Collections.IEnumerator routine) [0x00000] in <00000000000000000000000000000000>:0
02-07 11:26:57.664 29922 20676 E Unity : at TableDeckManager.ResetIndeces (System.Boolean jokerAtBottom) [0x00000] in <00000000000000000000000000000000>:0
02-07 11:26:57.664 29922 20676 E Unity : at TableDeckManager.OnHandInitialAnimationComplete () [0x00000] in <00000000000000000000000000000000>:0
02-07 11:26:57.664 29922 20676 E Unity : at PlayerHandManager+AnimationEvent.Invoke () [0x00000] in <00000000000000000000000000000000>:0
02-07 11:26:57.664 29922 20676 E Unity : at PlayerHandManager+<InitializeHandAnimationSequence>d__37.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
02-07 11:26:57.664 29922 20676 E Unity : at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0
02-07 11:26:57.664 29922 20676 E Unity :
Your answer
Follow this Question
Related Questions
problem with asset 2 Answers
I seriously cannot learn how to script. What do I do? 4 Answers
Why when i color 4 walls of a grid 10x10 it's coloring 10,9,9,8 and not 10,10,10,10 ? 0 Answers
How could i save a variable called by multiple objects using the same script? 1 Answer
Can jump even when in the air. 0 Answers