Bladeren bron

Fix npe in BottomTabswhen appStyle is undefined

fixes #253
Guy Carmeli 8 jaren geleden
bovenliggende
commit
f4717fd540
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 3
    0
      android/app/src/main/java/com/reactnativenavigation/views/BottomTabs.java

+ 3
- 0
android/app/src/main/java/com/reactnativenavigation/views/BottomTabs.java Bestand weergeven

@@ -82,6 +82,9 @@ public class BottomTabs extends AHBottomNavigation {
82 82
     }
83 83
 
84 84
     private void setStyle() {
85
+        if (AppStyle.appStyle == null) {
86
+            return;
87
+        }
85 88
         if (AppStyle.appStyle.bottomTabBadgeBackgroundColor.hasColor()) {
86 89
             setNotificationBackgroundColor(AppStyle.appStyle.bottomTabBadgeBackgroundColor.getColor());
87 90
         }