Skip to content

Commit

Permalink
added fix for possible nullable metadataicon
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdyrod committed Oct 7, 2024
1 parent 5eb7619 commit d4ec798
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ public MetadataIconData getMetadataIconData(@Nullable String programUid) {

public Boolean isMetadataIconDataAvailable(@Nullable String programUid) {
MetadataIconData iconData = metadataIconDataMap.get(programUid);
return !iconData.getIconRes().isEmpty();
if (iconData != null) {
return !iconData.getIconRes().isEmpty();
} else {
return false;
}
}

public void setOverdueDate(Date dateToShow) {
Expand Down

0 comments on commit d4ec798

Please sign in to comment.