Skip to content

Commit

Permalink
#2989 – Error message appears when copy/paste structure with S-Group …
Browse files Browse the repository at this point in the history
…properties, Functional Groups and Salts and Solvents
  • Loading branch information
Nitvex committed Jul 31, 2023
1 parent f524eaf commit 2d30332
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,10 @@ class ReStruct {
getAttachmentsPointsVBox(atomsIds: number[]): Box2Abs | null {
let result: Box2Abs | null = null;
for (const atomId of atomsIds) {
const reAtom = this.atoms.get(atomId)!;
const reAtom = this.atoms.get(atomId);
if (!reAtom) {
return null;
}
const bbox = reAtom.getVBoxObjOfAttachmentPoint(this.render);
if (bbox) {
result = result ? Box2Abs.union(result, bbox) : bbox;
Expand Down

0 comments on commit 2d30332

Please sign in to comment.