Skip to content
Snippets Groups Projects
Commit 74a1b4a0 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

when reaction without index is encountered additional error handling is added

parent 94b7d285
No related branches found
No related tags found
3 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!442Problem with exporting to celldesigner and parsing from celldesigner,!440Problem with exporting to celldesigner
Pipeline #6700 passed
......@@ -1105,6 +1105,9 @@ public class ReactionFromXml extends XmlParser {
// but sometimes there is no information about index...
if (index == null) {
index = 0;
// remove collinear points (because just by chance we can pickup the wrong
// segment which is too small)
ld = PolylineDataFactory.removeCollinearPoints(ld);
}
startPoint = reactantConverter.getAnchorPointCoordinates(reactant.getElement(), anchorsByNodes.get(reactant), ld);
endPoint = productConverter.getAnchorPointCoordinates(product.getElement(), anchorsByNodes.get(product),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment