Skip to content

Commit 5dbc9e7

Browse files
Null check before attempting to key database
1 parent bb18a17 commit 5dbc9e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/net/sqlcipher/database/SQLiteDatabase.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2329,7 +2329,9 @@ private void openDatabaseInternal(char[] password, SQLiteDatabaseHook databaseHo
23292329
databaseHook.preKey(this);
23302330
}
23312331

2332-
native_key(password);
2332+
if(password != null){
2333+
native_key(password);
2334+
}
23332335

23342336
if(databaseHook != null){
23352337
databaseHook.postKey(this);

0 commit comments

Comments
 (0)