Steps to reproduce:
- Create a new Unity project using the Universal 2D template
- Enable AI in the customizable toolbar (Customizable toolbar > Services > AI)
- Click on the AI button and select "Agree and install Unity AI"
- Open the Profiler window (Window > Analysis > Profiler)
- Dock the Profiler window
- Enter Play Mode to record some data for the Profiler window
- Select any frame in the Profiler window
- Click the "Ask Assistant" button
- Right-click the Profiler Data and select "Remove"
- Observe the Console window
Actual results: The Profiler Data is not removed and a "NullReferenceException: Object reference not set to an instance of an object" error is thrown
Expected results: The Profiler data is removed and no errors are thrown
Reproducible with versions: 6000.4.0f1, 6000.5.0a9, 6000.6.0a1
Can’t test with versions: 6000.0.71f1, 6000.3.11f1 (due to no Ask Assistant functionality)
Tested on (OS): MacOS Silicon Tahoe 26.3