jchempaint
jchempaint copied to clipboard
select bond --> popup has active product, reactand items: click -->exception
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Only IMolecule's can be stored in an IMoleculeSet at org.openscience.cdk.MoleculeSet.addAtomContainer(MoleculeSet.java:81) at org.openscience.jchempaint.controller.ReactionHub.makeReactantInNewReaction(ReactionHub.java:30) at org.openscience.jchempaint.action.CreateReactionAction.actionPerformed(CreateReactionAction.java:101)
This trace spews on selecting product in new reaction. It is fixed by https://gist.github.com/3315686 After applying the fix, the same test enters an infinite loop, similarly to selecting reactand in new reaction.