Android: fix code error cause npe
This commit is contained in:
parent
783f77e7ac
commit
b18bec6899
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user