Skip to content

Commit

Permalink
sync: Fix SyncDb user nullability
Browse files Browse the repository at this point in the history
Add nullable for return type of useDb
  • Loading branch information
jefftharris committed Jul 9, 2024
1 parent 58be2bc commit b19fddf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import android.os.ParcelFileDescriptor;
import android.util.Log;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.app.ActivityCompat;

import com.jefftharris.passwdsafe.lib.ManagedRef;
Expand Down Expand Up @@ -815,6 +816,7 @@ protected AccountVerifier(PasswdSafeProvider provider)
itsProvider = new ManagedRef<>(provider);
}

@Nullable
@Override
protected Void doInBackground(Void... voids)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public interface DbUser<T>
/**
* Use the database
*/
T useDb(SQLiteDatabase db) throws Exception;
@Nullable T useDb(SQLiteDatabase db) throws Exception;
}

/** Initialize the single SyncDb instance */
Expand Down

0 comments on commit b19fddf

Please sign in to comment.