Skip to content

Commit 25ad7c1

Browse files
committed
Merge pull request #8 from lazaromenezes/issue_6
Issue #6: Add null check for not found icons
2 parents b0a4963 + 0e7d4b0 commit 25ad7c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fab.android.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434

3535
if(ImageSource.isFileOrResourcePath(this.icon)){
3636
iconDrawable = ImageSource.fromFileOrResource(this.icon);
37-
this._android.setImageBitmap(iconDrawable.android);
37+
if(iconDrawable != null)
38+
this._android.setImageBitmap(iconDrawable.android);
3839
}
3940
else{
4041
var drawableId = android.content.res.Resources.getSystem().getIdentifier(this.icon, "drawable", "android");

0 commit comments

Comments
 (0)