Commit d0a7db5
Fix Sentry 31NG/368D/31G1: skip Gutenberg media-URL replacement when remote mediaId is null (#22871)
BlockProcessor reads MediaFile.mediaId as a non-null Kotlin String at the
field initializer, but MediaFile is a Java helper whose mediaId is null
whenever the underlying MediaModel has no remote ID (set explicitly in
FluxCUtils.mediaFileFromMediaModel). Guard the single entry point that
constructs MediaUploadCompletionProcessor so the substitution is skipped
instead of crashing: with no remote ID there is nothing to substitute.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b4c8f1a commit d0a7db5
2 files changed
Lines changed: 14 additions & 1 deletion
File tree
- WordPress/src
- main/java/org/wordpress/android/ui/posts
- test/java/org/wordpress/android/ui/posts
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
432 | 435 | | |
433 | 436 | | |
434 | 437 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
64 | 74 | | |
0 commit comments