From 78538954eb237bb8231bc49fee5a01f62160b625 Mon Sep 17 00:00:00 2001 From: Tim <47184194+imgde@users.noreply.github.com> Date: Sun, 22 Jun 2025 13:46:53 +0200 Subject: [PATCH] Fix Speicher Database + Coding --- .../java/de/htwsaar/webshop/model/ArticleWithImageModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/00-backend/src/main/java/de/htwsaar/webshop/model/ArticleWithImageModel.java b/00-backend/src/main/java/de/htwsaar/webshop/model/ArticleWithImageModel.java index 663bd9c..889ece0 100644 --- a/00-backend/src/main/java/de/htwsaar/webshop/model/ArticleWithImageModel.java +++ b/00-backend/src/main/java/de/htwsaar/webshop/model/ArticleWithImageModel.java @@ -37,6 +37,6 @@ public class ArticleWithImageModel { this.stockExpected = article.getStockExpected(); this.category = article.getCategory(); this.rating = article.getRating(); - this.image = image.getBase64(); + this.image = image == null ? "" : image.getBase64(); } }