Cannot perform this operation because there is no current transaction(不能执行此操作,因为没有当前事务。)

来源:互联网 发布:手机防辐射软件 编辑:程序博客网 时间:2024/05/20 11:23

db.endTransaction(); 时,添加判断 db!= bull 并且 db.inTransaction();

if(db != null && db.inTransaction()){

                    db.endTransaction();

                }


参考链接:https://stackoverflow.com/questions/26331362/java-lang-illegalstateexception-cannot-perform-this-operation-because-there-is

阅读全文
0 0
原创粉丝点击