Fix a crash in Android tabview when resetting font property.

This commit is contained in:
Hristo Deshev
2017-03-14 16:39:52 +02:00
committed by Hristo Deshev
parent 18739f8cd1
commit 0e6c5237b5

View File

@@ -381,6 +381,10 @@ export class TabViewStyler implements style.Styler {
} }
private static resetFontInternalProperty(v: view.View, nativeValue: any) { private static resetFontInternalProperty(v: view.View, nativeValue: any) {
if (!nativeValue) {
return;
}
var tab = <definition.TabView>v; var tab = <definition.TabView>v;
var tabLayout = tab._getAndroidTabView(); var tabLayout = tab._getAndroidTabView();
let tabCount = tabLayout.getItemCount(); let tabCount = tabLayout.getItemCount();