Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Error while adding a new child to a workitem [#97] #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ameyyadav09
Copy link

The error is not in the addChild method of the workitem.
it's in the _addChildren method,
cur_child_ids = [cur_child.identifier for cur_child in cur_children]
at this line when we say cur_child.identifier, we will get error if cur_child is None.
This happens if the workitem doesn't have any children initially.

The issue is probably because we have used a list comprehension, which doesn't care if the iterable object is empty and that could be fixed with a simple check.

@dixudx
Copy link
Owner

dixudx commented Jun 29, 2017

Thanks for your work. This bug has already been fixed in commit 0f0c7bd.

Please pull development branch, which will be merged into master when 0.7.0 is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants