Skip to content

Commit

Permalink
修复因为userId为空字符串导致的异常
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhuisheng committed Aug 2, 2016
1 parent d1139ce commit e9da68d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
import com.mossle.spi.humantask.TaskNotificationDTO;
import com.mossle.spi.process.InternalProcessConnector;

import org.apache.commons.lang3.StringUtils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -90,7 +92,7 @@ public Map<String, Object> prepareData(TaskInfo taskInfo) {
.getProcessInstanceId());
UserDTO assigneeUser = null;

if (assignee != null) {
if (StringUtils.isNotBlank(assignee)) {
assigneeUser = userConnector.findById(assignee);
}

Expand Down

0 comments on commit e9da68d

Please sign in to comment.