Search Unity

Remote Settings Null Exception at startup

Discussion in 'Unity Analytics' started by puzzlekings, Jul 28, 2017.

  1. puzzlekings

    puzzlekings

    Joined:
    Sep 6, 2012
    Posts:
    404
    Hi

    I just integrated Remote Settings into my app using 5.5.4 and all seems ok, however I frequently see this in the editor after pressing Play:

    NullReferenceException: Object reference not set to an instance of an object
    UnityEngine.Analytics.RemoteSettingsManager.CreateDataStoreDict () (at Assets/Editor/RemoteSettings/RemoteSettingsManager.cs:339)
    UnityEngine.Analytics.RemoteSettingsManager.EditorApplication_PlaymodeStateChanged () (at Assets/Editor/RemoteSettings/RemoteSettingsManager.cs:133)
    UnityEditor.EditorApplication.Internal_PlaymodeStateChanged () (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/EditorApplicationBindings.gen.cs:293)
    UnityEditor.Toolbar:OnGUI()

    Has anyone seen this before or have any idea what's causing it?

    thanks

    Nalin
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Have you configured any key-value pairs yet?
     
  3. puzzlekings

    puzzlekings

    Joined:
    Sep 6, 2012
    Posts:
    404
    I have.

    I just figured out that this happens when I first start Unity, and the way (it seems) to make it go away is to click the remote settings tab and then click Refresh.