Skip to content

Conversation

@valasatava
Copy link
Contributor

No description provided.

Copy link
Contributor

@josemduarte josemduarte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@josemduarte josemduarte merged commit 4452bdc into biojava:master Oct 9, 2017
Copy link
Member

@lafita lafita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fixes! I just found a bug.

*/
public List<Subunit> getSubunits() {
return Collections.unmodifiableList(subunits);
if (subunits != null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Subunits should never be null. The bug is that some code is missing from the helical symmetry constructor. The right fix is to add the following code into line 101:

 subunits = new ArrayList();
 for (SubunitCluster c : clusters) {
 	subunits.addAll(c.getSubunits());
 }

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the tip, now done in 96c6816

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants