How to reproduce:
1. Open the attached project "TilemapHelperNreRepro"
2. Go to Tools > Reproduce TilemapHelper NRE
3. Observe the Console
Expected results: No errors are thrown and the unresolvable Tile is skipped, the same way the single refresh path does
Actual results: "NullReferenceException: Object reference not set to an instance of an object" is thrown from TilemapHelper.HandleRefreshPositions
Reproducible with: 6000.7.0a6
Not reproducible with: 6000.5.10f1, 6000.6.0f1, 6000.7.0a5
Reproducible on: macOS Tahoe 26 (M1 Max)
Not reproducible on: No other environment tested
First lines of error:
Error running GetAllRefreshPositions for new Tilemap
NullReferenceException: Object reference not set to an instance of an object
at Unity.Tilemaps.TilemapHelper.HandleRefreshPositions (System.Int32 count, Unity.Collections.NativeArray`1[T] usedTileIds, Unity.Collections.NativeArray`1[T] oldTilesIds, Unity.Collections.NativeArray`1[T] newTilesIds, Unity.Collections.NativeArray`1[T] positions) [0x0008f] in ./Library/PackageCache/com.unity.2d.tilemap@df2d0af66b9e/Runtime/Tilemap/TilemapHelper.cs:123
at UnityEngine.Tilemaps.ITilemap.FindAllRefreshPositions (UnityEngine.Tilemaps.ITilemap tilemap, System.Int32 usedTileCount, System.IntPtr usedTilesIntPtr, System.Int32 count, System.IntPtr oldTilesIntPtr, System.IntPtr newTilesIntPtr, System.IntPtr positionsIntPtr) [0x0007e] in /Users/bokken/build/output/unity/unity/Modules/Tilemap/Managed/ITilemap.cs:393