Fix bug when data has no type.

This commit is contained in:
MikeAfc
2019-01-25 11:21:35 +08:00
parent 2027f3d5bc
commit 237ccfecce
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ org.gradle.jvmargs=-Xmx1536M
GROUP=com.alibaba.android
ARTIFACT=tangram
VERSION=1
VERSION_NAME=3.2.0.16
VERSION_NAME=3.2.0.17
PACKAGING_TYPE=aar
systemProp.compileSdkVersion=26
systemProp.targetSdkVersion=26
@@ -723,6 +723,10 @@ public class PojoDataParser extends DataParser<JSONObject, JSONArray> {
cellType = parseCardType(cellData);
}
if (TextUtils.isEmpty(cellType)) {
return BaseCell.NaN;
}
if (resolver.resolver().getViewClass(cellType) != null) {
cell = new BaseCell(cellType);
cell.serviceManager = serviceManager;