Steps to reproduce:
- Create a URP 3D Project
- In the Project Browser create a Shader Graph "From Template"
- In the Template Window's Search add 2 Category Query Blocks divided by an OR Operator
- While holding CTRL click on the first Category Block then on the Second one to Exclude them
- Then in quick succession while holding CTRL click the first Category Query Block 10 times
Actual results: Error "NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Search.BaseAsyncIEnumerableHandler`1[T].FetchSome (System.Collections.Generic.List`1[T] items, System.TimeSpan maxFetchTime) (at <2ffcd6fda4e74d5a8a00f3963e74bc6b>:0)
UnityEditor.Search.BaseAsyncIEnumerableHandler`1[T].Update " will be logged
Expected results: No Errors are logged when toggling Exclusion on a Query Block
Reproducible with versions: 6000.5.0a5, 6000.5.0b10, 6000.6.0a6
Cannot test with versions: 6000.0.76f1, 6000.3.16f1, 6000.4.9f1, 6000.5.0a4 (No Search In Template Windows)
Tested on (OS): Windows 11
Note: Issue reproduces around 1/10 times