Skip to content

Commit 30ef6e7

Browse files
committed
bug fix
1 parent 77125eb commit 30ef6e7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

android-database-sqlcipher/src/main/java/net/sqlcipher/database/BindingsRecorder.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,17 @@ String[] getBindings() {
7070
final String[] result=new String[bindings.size()];
7171

7272
for (int i=0;i<bindings.size();i++) {
73-
Object binding=bindings.get(i);
73+
int key=bindings.keyAt(i);
74+
Object binding=bindings.get(key);
7475

7576
if (binding!=null) {
76-
result[i]=bindings.get(i).toString();
77+
result[i]=bindings.get(key).toString();
7778
}
7879
else {
7980
result[i]=""; // SQLCipher does not like null binding values
8081
}
8182
}
8283

83-
return(result);
84+
return result;
8485
}
8586
}

0 commit comments

Comments
 (0)