Bläddra i källkod

Fix npe in BottomTabswhen appStyle is undefined

fixes #253
Guy Carmeli 8 år sedan
förälder
incheckning
f4717fd540

+ 3
- 0
android/app/src/main/java/com/reactnativenavigation/views/BottomTabs.java Visa fil

@@ -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
         }