提交 19daba5b 编写于 作者: M Micha Kiener

SPR-6423, fixing isParent bug in conversation object

上级 042dff35
......@@ -361,8 +361,20 @@ public class ConversationImpl extends DestructionAwareAttributeMap implements Mu
* @see org.springframework.conversation.manager.MutableConversation#isParent()
*/
public boolean isParent() {
return (children != null && children.size() > 0);
}
if (children == null || children.size() == 0) {
return false;
}
// step through the list of children and search for at least one active child conversation in order to
// make this an active parent
for (MutableConversation conversation : children) {
if (!conversation.isEnded()) {
return true;
}
}
return false;
}
/**
* @see org.springframework.conversation.Conversation#isTemporary()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册