UnigramDev/Unigram/gallery-convertof-null • 64b9ee6 • 1 files, +6/-0
Fix crash when opening the gallery
ConvertOf is an x:Bind function binding over ViewModel.SelectedItem, and
Bindings.Update runs from Load before an item has been selected, so the very
first evaluation dereferenced a null GalleryMedia.
ConvertCaption in the same file already guards its input the same way.
Reported by crash telemetry on 12.9.0.0.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
#unigram
Post #20539
139