You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
each with an undefined element and key blows up #20786
Uncaught (in promise) Error: boundsList cannot be empty
at debugAssert (ember.js:511:1)
at LiveBlockList.finalize (ember.js:6350:1)
at NewElementBuilder.popBlock (ember.js:6329:1)
at VM.execute (ember.js:6711:1)
at TryOpcode.handleException (ember.js:6669:1)
at UpdatingVMFrame.handleException (ember.js:6687:1)
at UpdatingVM.throw (ember.js:6668:1)
at Assert.evaluate (ember.js:6358:1)
at UpdatingVM._execute (ember.js:6668:1)
at ember.js:6665:1
at debug$1.runInTrackingTransaction (ember.js:1360:1)
at UpdatingVM.execute (ember.js:6665:1)
at RenderResultImpl.rerender (ember.js:6687:1)
at ember.js:14367:1
at RootState.render (ember.js:14363:1)
at ember.js:14398:1
at inTransaction (ember.js:6494:1)
at Renderer._renderRoots (ember.js:14391:1)
at Renderer._renderRootsTransaction (ember.js:14403:1)
at Renderer._revalidate (ember.js:14405:1)
at invoke (ember.js:3200:1)
at Queue.flush (ember.js:3195:1)
at DeferredActionQueues.flush (ember.js:3214:1)
at Backburner._end (ember.js:3244:1)
at Backburner._boundAutorunEnd (ember.js:3221:1)
Activity
Mudavath-Giri-Naik commentedon Nov 7, 2024
Hello @boris-petrov, can i work on this , since this is my first contribution
NullVoxPopuli commentedon Nov 13, 2024
I couldn't reproduce this in glimmer-vm, so I think it's a bug here: https://github.com/emberjs/ember.js/blob/main/packages/%40ember/template-compiler/lib/plugins/transform-each-track-array.ts#L26
Create repro for emberjs#20786
NullVoxPopuli commentedon Dec 9, 2025
It turns out that if the test is done in ember, it does reproduce!!
I can have a go at fixing this once the repo merge is done 🎉
Create repro for emberjs#20786
[BUGFIX] Fix {{#each}} crash when array contains null/undefined items…
Create repro for emberjs#20786
[BUGFIX] Fix {{#each}} crash when array contains null/undefined items…
Merge pull request #21124 from johanrd/fix/20786