Skip to content

Commit 1fd2fad

Browse files
committed
Fix class cast exception.
1 parent 3816509 commit 1fd2fad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/smiles/src/main/java/org/openscience/cdk/smiles/SmilesParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ else if (chemObj instanceof IAtomContainer)
790790
for (Map.Entry<Integer, Integer> e : cxstate.stereoGrps.entrySet()) {
791791
IAtom atm = atoms.get(e.getKey());
792792
IAtomContainer mol = atomToMol.get(atm);
793-
for (IStereoElement<?, ?> stereo : ((IAtomContainer) chemObj).stereoElements()) {
793+
for (IStereoElement<?, ?> stereo : mol.stereoElements()) {
794794
// maybe also Al and AT?
795795
if (stereo.getConfigClass() == IStereoElement.TH &&
796796
stereo.getFocus().equals(atm)) {

0 commit comments

Comments
 (0)