mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
fix: added null guard
This commit is contained in:
@ -243,6 +243,7 @@ public class BottomNavigationBar extends LinearLayout {
|
||||
}
|
||||
|
||||
private void setImageHeights(){
|
||||
if (this.mTabItems != null) {
|
||||
for (TabItemSpec tabItem : this.mTabItems) {
|
||||
if(tabItem.imageHeight == 0 && tabItem.iconId != 0) {
|
||||
Drawable drawable = getResources().getDrawable(tabItem.iconId);
|
||||
@ -253,6 +254,7 @@ public class BottomNavigationBar extends LinearLayout {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void populateTabStrip() {
|
||||
final OnClickListener tabClickListener = new TabClickListener();
|
||||
|
Reference in New Issue
Block a user