Reproduction steps:
1. Open project “HDRBug”
2. Open scene “SampleScene”
3. Make sure the layout of the Editor looks like the attached “Screenshot 2023-01-11 164123” screenshot
4. Select the “Circle” GameObject in the scene
5. Click on the “Select” button next to “Prefab” in the Inspector window
Expected result: no error is thrown
Actual result: “NullReferenceException: Object reference not set to an instance of an object“ is thrown in the Console log
Reproducible with: 2022.1.0b1, 2022.2.2f1, 2023.1.0a26
Not reproducible with: 2021.3.16f1, 2022.1.0a16, 2023.1.6f1, 2023.2.0b1
Couldn’t test with: 2020.3.44f1 (due to compiler errors)
Fixed version: 2023.1.0b1
Reproducible on: Catalina 10.15.7 (Intel)
Note: the issue reproduces only in certain editor layouts, the attached “IN-28510” screenshot layout provides expected results