YnotZer0 / unity3d_watsonSdk

C# file used in the developerWorks article
8 stars 5 forks source link

Null reference error #2

Closed amalshashika closed 5 years ago

amalshashika commented 5 years ago

Hi Tony,

I am getting this System.NullReferenceException: Object reference not set to an instance of an object at Watson_Service.set_Active (Boolean value) [0x000f6] exception in line 258. All 3 connections are successful. Please advice.

Further, [12/14/2018 07:05:55][Unity][CRITICAL] Unity Exception NullReferenceException: Object reference not set to an instance of an object : Watson_Service.set_Active (Boolean value) (at Assets/Scripts/Watson_Service.cs:258) Watson_Service.Update () (atScripts/Watson_Service.cs:551)

UnityEngine.Debug:LogError(Object) IBM.Watson.DeveloperCloud.Debug.DebugReactor:ProcessLog(LogRecord) (at Assets/Watson/Scripts/Debug/DebugReactor.cs:60) IBM.Watson.DeveloperCloud.Logging.LogSystem:ProcessLog(LogRecord) (at Assets/Watson/Scripts/Logging/Logger.cs:206) IBM.Watson.DeveloperCloud.Logging.Log:Critical(String, String, Object[]) (at Assets/Watson/Scripts/Logging/Logger.cs:294) IBM.Watson.DeveloperCloud.Logging.LogSystem:UnityLogCallback(String, String, LogType) (at Assets/Watson/Scripts/Logging/Logger.cs:167) UnityEngine.Application:CallLogCallback(String, String, LogType, Boolean)

image

YnotZer0 commented 5 years ago

I believe we covered this issue in the comments of the developerWorks article

amalshashika commented 5 years ago

Thank You! Tony. Much appreciated.