Search Issue Tracker

Fixed in 2019.1.X

Fixed in 2018.3.X



Found in


Issue ID




NullReferenceException error appears after running tests from the Test Runner window after running tests in Player

Unity Test Runner


Steps to reproduce:
1. Open attached Unity project
2. Open Test Runner window
3. Press 'Run all in player'
4. After tests are ran in player, double click on a test in Test Runner window to run it

Expected results: No errors appear
Actual results: A NullReferenceException error appears

Reproducible with: 2019.1.0a11
Not reproducible with: 2019.1.0a10

Full error:
NullReferenceException: Object reference not set to an instance of an objectUnityEditor.TestTools.TestRunner.GUI.TestListGUI.TestSelectionCallback (System.Int32[] selected) (at C:/buildslave/unity/build/Extensions/TestRunner/UnityEditor.TestRunner/GUI/Views/TestListGUIBase.cs:236)UnityEditor.TestTools.TestRunner.TestRunnerWindow.OnPlayModeStateChanged (PlayModeStateChange state) (at C:/buildslave/unity/build/Extensions/TestRunner/UnityEditor.TestRunner/TestRunnerWindow.cs:95)UnityEditor.EditorApplication.Internal_PlayModeStateChanged (PlayModeStateChange state) (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:302)

Comments (2)

  1. B02b0e7f98fbdbd293d6c6ca32a9e3f4?d=mm


    May 11, 2021 12:54

    This happens in 2020.3.5f1, any ideas if this will be fixed for the 2020.3 LTS?

  2. 1af0b55ebb5e573a2c845f838ff69fd0?d=mm


    Jul 17, 2019 12:31

    I'm using 2018.3.11f and I have the same error. it is not blocking or anything but it is an error that could be resolved, although i have no idea how...

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.