NullReferenceException in ConvaiCrosshairHandler

I’m getting a NullReferenceException related to ConvaiCrosshairHandler.cs when trying to interact with objects. The error occurs in FindInteractableReference() at line 62:

Full Console log below :

More indetail :slight_smile: NullReferenceException: Object reference not set to an instance of an object.
UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException (System.Object obj) (at <0900e0d4bb644dafbfd59eb7fd222a68>:0)
UnityEngine.GameObject.get_transform () (at <0900e0d4bb644dafbfd59eb7fd222a68>:0)
Convai.Scripts.Runtime.UI.ConvaiCrosshairHandler+<>c__DisplayClass5_0.b__0 (System.Collections.Generic.KeyValuePair2[TKey,TValue] kvp) (at Assets/Convai/Scripts/Runtime/UI/CanvasItems/ConvaiCrosshairHandler.cs:62) System.Linq.Enumerable+WhereEnumerableIterator1[TSource].MoveNext () (at :0)
Convai.Scripts.Runtime.UI.ConvaiCrosshairHandler.FindInteractableReference (UnityEngine.GameObject hitGameObject) (at Assets/Convai/Scripts/Runtime/UI/CanvasItems/ConvaiCrosshairHandler.cs:62)
Convai.Scripts.Runtime.UI.ConvaiCrosshairHandler.FindPlayerReferenceObject () (at Assets/Convai/Scripts/Runtime/UI/CanvasItems/ConvaiCrosshairHandler.cs:47)
Convai.Scripts.Runtime.Core.ConvaiPlayerInteractionManager.UpdateActionConfig () (at Assets/Convai/Scripts/Runtime/Core/ConvaiPlayerInteractionManager.cs:131)
Convai.Scripts.Runtime.Core.ConvaiPlayerInteractionManager.HandleVoiceInput (System.Boolean listenState) (at Assets/Convai/Scripts/Runtime/Core/ConvaiPlayerInteractionManager.cs:99)
Convai.Scripts.Runtime.Core.ConvaiInputManager.OnTalk (UnityEngine.InputSystem.InputAction+CallbackContext context) (at Assets/Convai/Scripts/Runtime/Core/ConvaiInputManager.cs:129)
UnityEngine.InputSystem.Utilities.DelegateHelpers.InvokeCallbacksSafe[TValue] (UnityEngine.InputSystem.Utilities.CallbackArray1[System.Action1[TValue]]& callbacks, TValue argument, System.String callbackName, System.Object context) (at ./Library/PackageCache/com.unity.inputsystem/InputSystem/Utilities/DelegateHelpers.cs:46)
UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)
UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr)

Bypassed the error with some code tweaking, it was causing the run time to pause when this error popped up, but now the actions are not working, meaning the animations or the move to action

Hello @Games.dev3l0p3r,

Welcome to the Convai Developer Forum!

Sorry to hear you’re running into this issue.

Please make sure you haven’t made any modifications to the Convai Essentials prefab in your scene. This error can often occur if the prefab is changed or required references are missing.

Could you share a screenshot of your scene hierarchy with the Convai Essentials object expanded? That’ll help us better understand the setup and assist you further.

Sorry for the very late reply, but it solved it self when I re-installed ConvAI, I think I may have accidentally missed a step or two or idk what happened, but yeah now everythings fine, although, now I am facing an issue of NPC not able to speak, I mean in console it shows that its speaking but I am not getting any audio

Please create a new post with the console logs.