Android v2.1.11 StatementInsert 空字符串闪退
1、表结构 @WCDBTableCoding public class Sample { @WCDBField(isPrimary = true) public int id; @WCDBField public String content;
@WCDBField
public String name;
@WCDBField
public int age;
}
2、执行语句 StatementInsert statementInsert = new StatementInsert().insertInto("sampleTable") .columns(DBSample.id, DBSample.name, DBSample.content, DBSample.age) .values(1, "", "", 13); database.execute(statementInsert);
3、App出现闪退
Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 13342 (ample.wcdb_test) pid: 13342, tid: 13342, name: ample.wcdb_test >>> com.example.wcdb_test <<< #00 pc 0026a8ca /data/app/com.example.wcdb_test-7knsfhxrsbd5Qmc6WrVavg==/base.apk (offset 0x1264000) #01 pc 00277b49 /data/app/com.example.wcdb_test-7knsfhxrsbd5Qmc6WrVavg==/base.apk (offset 0x1264000) #02 pc 00071076 /data/app/com.example.wcdb_test-7knsfhxrsbd5Qmc6WrVavg==/oat/x86/base.odex (offset 0x56000) channel '41844b2 com.example.wcdb_test/com.example.wcdb_test.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
get
fixed in the latest version