Repository: incubator-taverna-workbench Updated Branches: refs/heads/master 0c723d627 -> 8502f8dee
Catch ParseException Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/commit/195c3cef Tree: http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/tree/195c3cef Diff: http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/diff/195c3cef Branch: refs/heads/master Commit: 195c3cefc709606d6586d62d95fe85be1966fbf4 Parents: 0c723d6 Author: Stian Soiland-Reyes <st...@apache.org> Authored: Thu Jun 11 16:56:49 2015 +0100 Committer: Stian Soiland-Reyes <st...@apache.org> Committed: Thu Jun 11 16:56:49 2015 +0100 ---------------------------------------------------------------------- .../taverna/workbench/models/graph/svg/SVGGraphController.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/195c3cef/taverna-graph-model/src/main/java/org/apache/taverna/workbench/models/graph/svg/SVGGraphController.java ---------------------------------------------------------------------- diff --git a/taverna-graph-model/src/main/java/org/apache/taverna/workbench/models/graph/svg/SVGGraphController.java b/taverna-graph-model/src/main/java/org/apache/taverna/workbench/models/graph/svg/SVGGraphController.java index 7eb6453..c613fa5 100644 --- a/taverna-graph-model/src/main/java/org/apache/taverna/workbench/models/graph/svg/SVGGraphController.java +++ b/taverna-graph-model/src/main/java/org/apache/taverna/workbench/models/graph/svg/SVGGraphController.java @@ -51,6 +51,7 @@ import static org.apache.batik.util.SVGConstants.SVG_Y1_ATTRIBUTE; import static org.apache.batik.util.SVGConstants.SVG_Y2_ATTRIBUTE; import static org.apache.batik.util.SVGConstants.SVG_Y_ATTRIBUTE; + import java.awt.Color; import java.awt.Point; import java.awt.Rectangle; @@ -75,6 +76,7 @@ import org.apache.taverna.workbench.models.graph.GraphEdge; import org.apache.taverna.workbench.models.graph.GraphElement; import org.apache.taverna.workbench.models.graph.GraphNode; import org.apache.taverna.workbench.models.graph.dot.GraphLayout; +import org.apache.taverna.workbench.models.graph.dot.ParseException; import org.apache.batik.bridge.UpdateManager; import org.apache.batik.dom.svg.SVGOMAnimationElement; @@ -224,6 +226,8 @@ public class SVGGraphController extends GraphController { logger.warn("Invalid dot returned"); else actualBounds = graphLayout.layoutGraph(this, graph, layout, bounds); + } catch (ParseException e) { + throw new RuntimeException("Can't parse dot", e); } catch (IOException e) { outputMessage(dotErrorMessage); setDotMissing(true);