Android: fix code error cause npe
This commit is contained in:
@@ -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