Fixed CompilePGraphsAction that gave a NullPointerException 14/1314/1
authorMiro Richard Eklund <miro.eklund@semantum.fi>
Mon, 11 Dec 2017 12:39:35 +0000 (14:39 +0200)
committerMiro Richard Eklund <miro.eklund@semantum.fi>
Mon, 11 Dec 2017 12:39:35 +0000 (14:39 +0200)
commit0070425afb2c54ded4ba8ef9c037001c6dbac72a
tree50f4ec9218ed6b5569563b3d1948acbca8980fe6
parenta20d3fc6cd5fa8bbdab7f3aa9c7f41d2faa8aa09
Fixed CompilePGraphsAction that gave a NullPointerException

A worker thread with a null displayed tried to compile the pgraph for
ontology definition files. Ensuring that a default display is used in
such cases fixed the issues.

An error message mentioned missing dependencies if the ontology file
containers syntax errors. Thie message now mentioned problems in the
ontology file instead.

refs #7679

Change-Id: Icd483835462ec3cd27c16ca751eaee3d7b3dbdd2
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/CompilePGraphsAction.java