Compiling ontologies from UI causes null display and fails
|Assignee:||Miro Eklund||% Done:|
|Release notes:||Fixed NPE from modelled ontology compilation action.|
|Velocity based estimate||-|
|Release||Simantics 1.32.0||Release relationship||Auto|
Ontology definition files could not be compiled from the UI as a worker thread handled the job with a null display.
Changing the code to take into account a null display fixes the issues.
Simultaneously, the error message provided mentioned dependency issues, where in reality the issues were related to the ontology definition file.
The error message should be updated as well.
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.