Skip to content

Commit

Permalink
Merge pull request #1997 from moneymanagerex/google
Browse files Browse the repository at this point in the history
SQLite3MC followup: fix parameter bindArgs
  • Loading branch information
guanlisheng authored Dec 24, 2024
2 parents 940ff48 + 69590ed commit e677887
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public boolean onCreate() {
@Override
public Cursor query(@NonNull Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
try {
return query_internal(uri, projection, selection, selectionArgs, sortOrder);
return query_internal(uri, projection, selection, selectionArgs != null ? selectionArgs : new String[0], sortOrder);
} catch (Exception e) {
Timber.e(e, "content provider.query %s", uri);
}
Expand Down Expand Up @@ -361,7 +361,7 @@ private void logTableInsert(Dataset dataset, ContentValues values) {
}

private Cursor query_internal(Uri uri, String[] projection, String selection,
String[] selectionArgs, String sortOrder) {
@NonNull String[] selectionArgs, String sortOrder) {
Timber.v("Querying URI: %s", uri);
Timber.v("Querying selection: %s", selection);

Expand Down

0 comments on commit e677887

Please sign in to comment.