Android: fix code error cause npe

This commit is contained in:
pengfei.zhou 2021-05-31 15:29:59 +08:00 committed by osborn
parent 783f77e7ac
commit b18bec6899

View File

@ -66,7 +66,7 @@ public class TextNode extends ViewNode<TextView> {
}
JSValue maxHeight = jsObject.getProperty("maxHeight");
if (maxHeight.isNumber()) {
mView.setMaxHeight(DoricUtils.dp2px(maxWidth.asNumber().toFloat()));
mView.setMaxHeight(DoricUtils.dp2px(maxHeight.asNumber().toFloat()));
}
}