Search Issue Tracker

Active

Votes

0

Found in

2021.3.19f1

2022.2.7f1

2023.1.0b5

2023.2.0a3

Issue ID

UUM-29009

Regression

No

“NullReferenceException“ errors in the Console when completing running tests and entering Play Mode

--

-

How to reproduce:
1. Open the attached project “TestRunnerBug.zip“
2. Open Scene “SampleScene“ (Assets/Scenes)
3. Open Test Runner (Window>General>Test Runner)
4. Select “PlayMode“ and press “Run All“
5. Enter Play Mode

Expected result: No errors in the Console
Actual result: “NullReferenceException“ errors in the Console

Reproducible with: 2021.3.19f1, 2022.2.7f1, 2023.1.0b5, 2023.2.0a3
Can’t test with: 2020.3.45f1 (Errors in the Console when opening the project)

Reproduced on: macOS 13.0.1 (Intel)

Full errors:
NullReferenceException: Object reference not set to an instance of an object
Character.KeyboardInput.GetRightStickVector () (at Assets/Scripts/Character/Input/KeyboardInput.cs:36)
Character.ShootingController.RegisterAimingInputDirection () (at Assets/Scripts/Character/ShootingController.cs:41)
Character.ShootingController.Update () (at Assets/Scripts/Character/ShootingController.cs:30)

NullReferenceException: Object reference not set to an instance of an object
Character.KeyboardInput.GetEastButtonIsPressed () (at Assets/Scripts/Character/Input/KeyboardInput.cs:101)
Character.Controller.RegisterMovementState () (at Assets/Scripts/Character/Controller.cs:104)
Character.Controller.Update () (at Assets/Scripts/Character/Controller.cs:61)

NullReferenceException: Object reference not set to an instance of an object
Character.KeyboardInput.GetLeftTriggerIsPressed () (at Assets/Scripts/Character/Input/KeyboardInput.cs:77)
Character.CameraFollow.CameraZoomControls () (at Assets/Scripts/Character/CameraFollow.cs:26)
Character.CameraFollow.Update () (at Assets/Scripts/Character/CameraFollow.cs:22)

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.