Editor: Fixing null ref exception when trying to maximize a pop-up window.
Editor: Fixing null ref exception when trying to maximize a pop-up window.
Editor: Fixing null ref exception when trying to maximize a pop-up window.
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/SampleScene” Scene
3. In the Hierarchy window, select the Image GameObject (Canvas > Image)
4. In the Inspector window, open the Anchor Presets menu
5. Hover the mouse cursor over the Anchor Presets menu
6. Press Shift + Space
7. Observe the Console
Expected result: No errors are logged
Actual result: “NullReferenceException: Object reference not set to an instance of an object” error is logged in the Console