Skip to content

fix(dw-render-viewmodels): the no-picture fallback hides a null DefaultImage (5.8.7) - #178

Merged
Justinvolved merged 1 commit into
mainfrom
fix/lrn-defaultimage-nopicture
Oct 2, 2026
Merged

Justinvolved merged 1 commit into
mainfrom
fix/lrn-defaultimage-nopicture

Conversation

@Justinvolved

Copy link
Copy Markdown
Collaborator

Stacked on #177 (it shares CHANGELOG.md and marketplace.json). Retarget to main after #177 merges.

viewmodel-traps.md §1 states when product.DefaultImage is really null. When Ecom/Picture/NoPicture (Large, Large_path) is set, DW fills DefaultImage with the fallback image for a product with no image and no assets. An unguarded template then renders a clean page. So:

  • To reproduce the crash, or to prove a sweep catches it, blank the fallback for the run, recycle, then restore. Measured on DW 10.28.12 with Swift 2.4: with the fallback set, an unguarded Swift-v2_ProductMedia.cshtml gave a clean PDP for a zero-asset product. With the fallback blank, the same PDP rendered a NullReferenceException block at HTTP 200.
  • On a solution whose templates still lack the guard, the fallback works around the crash. It does not replace the guard.

Validation: python3 scripts/validate-skills.py gives 0 errors. node scripts/build-manifest.mjs was run.

@Justinvolved
Justinvolved changed the base branch from fix/lrn-triage-demo-2026-10-02 to main October 2, 2026 13:07
…ltImage (5.8.7)

A crash reproduction or a sweep proof must blank Ecom/Picture/NoPicture for the run; the fallback also covers unguarded templates until they are fixed.
@Justinvolved
Justinvolved force-pushed the fix/lrn-defaultimage-nopicture branch from af70343 to 41bbd83 Compare October 2, 2026 13:07
@Justinvolved
Justinvolved merged commit 9b9431c into main Oct 2, 2026
1 check passed
@Justinvolved
Justinvolved deleted the fix/lrn-defaultimage-nopicture branch October 2, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant