epam / epam/Indigo

Adding hydrogens doesn't work for "Custom query bonds" wrapped into "Query component" type S-Group

Open
#1,625 1 comment 0 reactions 1 assignee Claimed by @AliaksandrDziarkach View on GitHub
Hydrogens Priority: Medium
Dominant language
C++
Stars
406
Forks
134
Avg merge
2d 11h
Merged PRs (30d)
24

Description

**Ketcher version** [e.g. v2.4.2].
- Indigo Toolkit Version 1.18.0-dev.4.0-g085ab345f-x86_64-linux-gnu-11.2.1
- Ketcher Version 2.17.0-rc.2 Build at 2024-01-03; 17:17:22
- Chrome Version 120.0.6099.225 (Official Build) (64-bit)
- Win10
- Issue found while testing https://github.com/epam/Indigo/issues/1436

**Describe the bug**
Adding hydrogens doesn't work for Custom query bonsds wrapped into Query components type S-Group
![image](https://github.com/epam/Indigo/assets/26869421/e02c2c77-cb37-4bb5-a47e-e30fc5088580)

**Steps to Reproduce**
1. Load from file: [Adding hydrogens doesn't work for Custom query bonsds wrapped into Query components type S-Group.zip](https://github.com/epam/Indigo/files/14076004/Adding.hydrogens.doesn.t.work.for.Custom.query.bonsds.wrapped.into.Query.components.type.S-Group.zip) (unzip first)
3. Press Add/Remove explicit hydrogens button

**Actual behavior**
System throws exception: IndigoException: array: invalid index 4 (size=4)
![image](https://github.com/epam/Indigo/assets/26869421/3a7d16aa-1c17-4c00-aa83-5a0bb7ebdac2)
![image](https://github.com/epam/Indigo/assets/26869421/965fb63f-0408-4ce4-a4d9-9c3ac257d3eb)
[uat.test.lifescience.opensource.epam.com-1706444618732.log](https://github.com/epam/Indigo/files/14076007/uat.test.lifescience.opensource.epam.com-1706444618732.log)

**Expected behavior**
No exception happens

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.