Skip to content

Commit 21d1afb

Browse files
committed
fix: add null check for bitmap in list
1 parent bf12cb4 commit 21d1afb

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Add null check for bitmap in list
13+
1014
## [0.17.0] - 2025-05-16
1115

1216
### Added

android/src/main/java/com/reactnativeandroidwidget/RNWidgetCollectionService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ public RemoteViews getViewAt(int position) {
136136
listItemView.setOnClickFillInIntent(R.id.rn_widget_list_item, fillInIntent);
137137
}
138138

139+
if (bitmapAt == null) {
140+
return listItemView;
141+
}
142+
139143
ArrayList<Bundle> clickableAreas = bundle.getParcelableArrayList("clickableAreas");
140144

141145
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {

0 commit comments

Comments
 (0)