diff --git a/CHANGELOG.md b/CHANGELOG.md
index f988ebf3..89617387 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- (potentionally) a bug where many dialogs could cause an execution timeout
+- Mutltiple rare crashes when component content is set before component initialization
## [0.13.0] - 2023-10-02
diff --git a/playlet-lib/src/components/ChannelView/ChannelView.xml b/playlet-lib/src/components/ChannelView/ChannelView.xml
index 62c84169..777ebc73 100644
--- a/playlet-lib/src/components/ChannelView/ChannelView.xml
+++ b/playlet-lib/src/components/ChannelView/ChannelView.xml
@@ -27,7 +27,8 @@
id="thumbnail"
width="100"
height="100"
- translation="[2,2]" />
+ translation="[2,2]"
+ failedBitmapUri="pkg:/images/thumbnail-missing.jpg" />
+
+
diff --git a/playlet-lib/src/components/PlaylistView/PlaylistViewCell.bs b/playlet-lib/src/components/PlaylistView/PlaylistViewCell.bs
index 7627e58b..59bfe8a4 100644
--- a/playlet-lib/src/components/PlaylistView/PlaylistViewCell.bs
+++ b/playlet-lib/src/components/PlaylistView/PlaylistViewCell.bs
@@ -2,13 +2,15 @@ import "pkg:/source/utils/TimeUtils.bs"
import "pkg:/source/utils/Types.bs"
function Init()
+ FindChildren()
+end function
+
+function FindChildren()
m.titleLabel = m.top.findNode("titleLabel")
m.authorLabel = m.top.findNode("authorLabel")
m.thumbnail = m.top.findNode("thumbnail")
m.durationRect = m.top.FindNode("durationRect")
m.durationLabel = m.top.FindNode("durationLabel")
-
- m.thumbnail.failedBitmapUri = "pkg:/images/thumbnail-missing.jpg"
end function
function OnContentSet() as void
@@ -18,6 +20,10 @@ function OnContentSet() as void
return
end if
+ if m.titleLabel = invalid
+ FindChildren()
+ end if
+
m.titleLabel.text = content.title
m.authorLabel.text = content.author
diff --git a/playlet-lib/src/components/PlaylistView/PlaylistViewCell.xml b/playlet-lib/src/components/PlaylistView/PlaylistViewCell.xml
index 761b3144..aa952332 100644
--- a/playlet-lib/src/components/PlaylistView/PlaylistViewCell.xml
+++ b/playlet-lib/src/components/PlaylistView/PlaylistViewCell.xml
@@ -7,7 +7,8 @@
id="thumbnail"
loadDisplayMode="scaleToZoom"
width="190"
- height="106">
+ height="106"
+ failedBitmapUri="pkg:/images/thumbnail-missing.jpg">
-
+
+
+
+
+
+ height="196"
+ failedBitmapUri="pkg:/images/thumbnail-missing.jpg" />