]> gerrit.simantics Code Review - simantics/platform.git/commit
RouteGraphUtils.readConnectionStyle returns default value if necessary 43/643/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 20 Jun 2017 06:29:08 +0000 (09:29 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 20 Jun 2017 06:29:08 +0000 (09:29 +0300)
commite571f79968d4f002505f3ea11e50ac7075d492c0
tree481047f5995a273206502b670dc5b5b9fdb68ff2
parentc26cba49344b973fba8022c9e6d12adea93abd48
RouteGraphUtils.readConnectionStyle returns default value if necessary

Previously the code would crash with NPE if the ontology/model was not
created to contain STR.HasConnectionType information accordingly. Now it
will just return ExampleConnectionStyle if there is no modelled
information available.

refs #7323

Change-Id: I3d5b5ba6a4e615d7ae120e42aa003c787617b8d0
bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/RouteGraphUtils.java