jchempaint icon indicating copy to clipboard operation
jchempaint copied to clipboard

select bond --> popup has active product, reactand items: click -->exception

Open rwst opened this issue 12 years ago • 0 comments

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.

rwst avatar Jun 11 '12 16:06 rwst