Skip to content

Commit 0183376

Browse files
committed
Fix Bug 445298 - NullPointer Exception when close SQLite db
Change-Id: If45c5f16301f24cffd55ec74876e41d171b6cfaf Signed-off-by: zyang5e4 <zyyangbj@cn.ibm.com>
1 parent f824699 commit 0183376

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • org.eclipse.paho.android.service/org.eclipse.paho.android.service/src/org/eclipse/paho/android/service

org.eclipse.paho.android.service/org.eclipse.paho.android.service/src/org/eclipse/paho/android/service/DatabaseMessageStore.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,8 @@ protected void setDuplicate(boolean dup) {
422422

423423
@Override
424424
public void close() {
425-
this.db.close();
425+
if (this.db!=null)
426+
this.db.close();
426427

427428
}
428429

0 commit comments

Comments
 (0)