diff --git a/community-service/src/main/java/com/tanpu/community/manager/ThemeManager.java b/community-service/src/main/java/com/tanpu/community/manager/ThemeManager.java
index b5fe4f6e2bbbb278f56939c8b9ff28881220fa81..ffc4bd2db470d6c40cc781c64f8bd9287a050857 100644
--- a/community-service/src/main/java/com/tanpu/community/manager/ThemeManager.java
+++ b/community-service/src/main/java/com/tanpu/community/manager/ThemeManager.java
@@ -85,6 +85,7 @@ public class ThemeManager {
     @Autowired
     private FeignClientForCourse feignClientForCourse;
 
+    @Autowired
     private OSSFileService ossFileService;
 
 
@@ -302,6 +303,9 @@ public class ThemeManager {
             //单图,根据id传入url
             String imgId = themeContentQo.getValue();
             FileRecordEntity fileEntity = ossFileService.queryById(imgId);
+            if (fileEntity==null) {
+                throw new BizException("图片未找到,id:"+imgId);
+            }
             themeContentQo.setValue(CommunityConstant.OSS_PREFIX_URL+fileEntity.getFileOssKey());
         }