From e1b81782ea5aec72dc4c223f1ecc28af992084f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=A4nge?= Date: Wed, 17 Jan 2024 16:11:26 +0100 Subject: [PATCH] Add `@Nullable` to rawBytes The newer version of room does not allow null values unless explicitly specified. --- .../qrscanner/database/HistoryItem.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/secuso/privacyfriendlycodescanner/qrscanner/database/HistoryItem.java b/app/src/main/java/com/secuso/privacyfriendlycodescanner/qrscanner/database/HistoryItem.java index 151e1fc2..88677a6a 100644 --- a/app/src/main/java/com/secuso/privacyfriendlycodescanner/qrscanner/database/HistoryItem.java +++ b/app/src/main/java/com/secuso/privacyfriendlycodescanner/qrscanner/database/HistoryItem.java @@ -4,6 +4,7 @@ import android.os.Parcel; import androidx.annotation.NonNull; +import androidx.annotation.Nullable; import androidx.room.Entity; import androidx.room.Ignore; import androidx.room.PrimaryKey; @@ -28,6 +29,7 @@ public class HistoryItem { private Bitmap image; @NonNull private String text = ""; + @Nullable private byte[] rawBytes; private int numBits; private ResultPoint[] resultPoints;