Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Untracable NullReferenceException: Object reference not set to an instance of an object

Discussion in 'Unity Version Control' started by mkssanudeep, Mar 3, 2022.

  1. mkssanudeep

    mkssanudeep

    Joined:
    Dec 3, 2020
    Posts:
    15
    This error particularly doesn't affect how my project runs in the editor, however, it keeps popping in my console and I don't know why and I don't know how to clear it.

    NullReferenceException: Object reference not set to an instance of an object
    Codice.Client.BaseCommands.BaseCommandsImpl.GetWorkspaceFromPath (System.String path, System.Boolean doPlatformGetPath) (at <4d34e3df724146edacbda57a9d62370d>:0)
    Codice.Client.BaseCommands.BaseCommandsImpl.GetWorkspaceFromPath (System.String path) (at <4d34e3df724146edacbda57a9d62370d>:0)
    PlasticGui.PlasticAPI.GetWorkspaceFromPath (System.String wkPath) (at <4d34e3df724146edacbda57a9d62370d>:0)
    Unity.PlasticSCM.Editor.FindWorkspace.InfoForApplicationPath (System.String path, PlasticGui.IPlasticAPI plasticApi) (at Library/PackageCache/com.unity.collab-proxy@1.9.0/Editor/PlasticSCM/FindWorkspace.cs:32)
    Unity.PlasticSCM.Editor.AssetMenu.AssetMenuItems.Enable () (at Library/PackageCache/com.unity.collab-proxy@1.9.0/Editor/PlasticSCM/AssetMenu/AssetMenuItems.cs:40)
    Unity.PlasticSCM.Editor.AssetMenu.AssetMenuItems.BackgroundWorker_CompletedWork (System.Object sender, System.ComponentModel.RunWorkerCompletedEventArgs e) (at Library/PackageCache/com.unity.collab-proxy@1.9.0/Editor/PlasticSCM/AssetMenu/AssetMenuItems.cs:32)
    System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted (System.ComponentModel.RunWorkerCompletedEventArgs e) (at <0463b2ef957545c0a51b42f372cd4fbb>:0)
    System.ComponentModel.BackgroundWorker.AsyncOperationCompleted (System.Object arg) (at <0463b2ef957545c0a51b42f372cd4fbb>:0)
    UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <ca496b8c93454b2f9b9924292c19379f>:0)
    UnityEngine.UnitySynchronizationContext:ExecuteTasks()
     
  2. ollieblanks

    ollieblanks

    Unity Technologies

    Joined:
    Aug 21, 2017
    Posts:
    432
    Hi @mkssanudeep,

    It appears that this error is coming from the Version Control package (com.unity.collab-proxy@1.9.0). If you are using Plastic SCM or Collaborate, please can you update this package to the latest version within Package Manager?

    If you are not using either of these services then the package can be removed entirely.

    Hope this helps!
     
  3. mkssanudeep

    mkssanudeep

    Joined:
    Dec 3, 2020
    Posts:
    15
    I have updated it to the latest Plastic SCM one from the month of february which ended up giving me multiple errors so just went back the version I was initially using. Atleast I could play the game.
     
  4. ollieblanks

    ollieblanks

    Unity Technologies

    Joined:
    Aug 21, 2017
    Posts:
    432
    What were the errors you received with the latest Version Control package?