You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!!
The text was updated successfully, but these errors were encountered:
See the original post below:
The text was updated successfully, but these errors were encountered: