diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java index 28b30e7..ec843ed 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java @@ -258,7 +258,9 @@ public class TaskController extends JeecgController { avatars.append(byId.getAvatar()).append(","); } - avatars = new StringBuilder(avatars.substring(0, avatars.length() - 1)); + if (avatars.length() != 0) { + avatars = new StringBuilder(avatars.substring(0, avatars.length() - 1)); + } e.setHeadpic(avatars.toString()); }