Description
See the original post below:
Hi again, thank you for helping me out before!
I have another question, I hope you can help!
I am getting an error when I am trying to load a JSON file from console.developers.google.com.
I made GoogleDataSettings.asset, then loaded the JSON file I downloaded, but I can't see the Client ID and the Client Secret on the Inspector, because I get this error:
NullReferenceException: Object reference not set to an instance of an object
UnityQuickSheet.GoogleDataSettingsEditor.OnInspectorGUI () (at Assets/QuickSheet/GDataPlugin/Editor/GoogleDataSettingsEditor.cs:107)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1231)
UnityEditor.DockArea:OnGUI()Apparently because of this line on GoogleDataSettingsEditor.cs.
var oauthData = JObject.Parse(jsonData).SelectToken("installed").ToString();
I think it is trying to load the data from the token "installed", but it doesn't exist on the JSON file!
Do you know how to solve this so I can verify my account and load data from Google Drive?
Thank you!!