From f6bd8d2355a37d3fd72f23494db4661f3983b32c Mon Sep 17 00:00:00 2001
From: luodangjia <luodangjia>
Date: 星期二, 14 一月 2025 10:25:29 +0800
Subject: [PATCH] 12.18

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GoodsEvaluateController.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GoodsEvaluateController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GoodsEvaluateController.java
index 93872c1..5217eca 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GoodsEvaluateController.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GoodsEvaluateController.java
@@ -173,7 +173,9 @@
             item.setUserName(appUser.getName());
         }
         Goods goods = goodsService.getById(item.getGoodsId());
-        item.setGoodsName(goods.getName());
+        if(null != goods){
+            item.setGoodsName(goods.getName());
+        }
     }
 
     /**

--
Gitblit v1.7.1