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. Dismiss Notice

Help to understand NullReference Exception in Console

Discussion in 'Getting Started' started by dojo9, Oct 7, 2020.

  1. dojo9

    dojo9

    Joined:
    Sep 18, 2020
    Posts:
    12
    A NullReference exception logged in Console shows this

    error.png

    My computer does not have a User `bokken`, so then where is the green highlighted `/Users/bokken/` coming from ?
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,842
    I think it's coming from the buildslave where that Unity code was compiled. Anyway, it's not important. The message here is that a button was pressed, and that invoked an event, which landed you at SceneLoader.cs line 11, where you're dereferencing a null object.
     
    StonedNTime and dojo9 like this.
  3. dojo9

    dojo9

    Joined:
    Sep 18, 2020
    Posts:
    12
    Thanks
     
  4. OPStellar

    OPStellar

    Joined:
    Nov 15, 2020
    Posts:
    1
    I get this package manager errors in the console right now:

    The editor layout could not be fully loaded, this can happen when the layout contains EditorWindows not available in this project
    UnityEditor.WindowLayout:LoadDefaultWindowPreferences() (at /Users/bokken/buildslave/unity/build/Editor/Mono/GUI/WindowLayout.cs:40)

    and

    [PackageManager] Error Aborted Request
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions() (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:310)

    I can't tell which asset it is that is not able to import that is pulling from bokken, but I'd like to make it stop.