Typical synchronization of diagram page description causes NPE
An Apros unit test caused the following NPE during synchronization of a diagram page description:
java.lang.NullPointerException
at org.simantics.modeling.typicals.rules.PageSettingsTypicalRule.synchronize(PageSettingsTypicalRule.java:28)
at org.simantics.modeling.typicals.SyncTypicalTemplatesToInstances.synchronizeDiagramChanges(SyncTypicalTemplatesToInstances.java:606)
at org.simantics.modeling.typicals.SyncTypicalTemplatesToInstances.syncInstance(SyncTypicalTemplatesToInstances.java:573)
at org.simantics.modeling.typicals.SyncTypicalTemplatesToInstances.syncInstance(SyncTypicalTemplatesToInstances.java:445)
at org.simantics.modeling.typicals.SyncTypicalTemplatesToInstances.perform(SyncTypicalTemplatesToInstances.java:353)
at org.simantics.modeling.typicals.TypicalUtil.syncTypicalInstance(TypicalUtil.java:526)
at scl.Simantics.Diagram$6.Temp.apply(_SCL_FunctionValue)
at org.simantics.scl.compiler.internal.interpreted.IApply.execute(IApply.java:29)
at org.simantics.scl.compiler.internal.interpreted.ILambda$Arity1Func.apply(ILambda.java:26)
at org.simantics.scl.db.SCLFunctions$4.perform(SCLFunctions.java:268)
at fi.vtt.simantics.procore.internal.SessionImplSocket$2.run0(SessionImplSocket.java:580)
at org.simantics.db.impl.query.QueryProcessor$SessionTask.run(QueryProcessor.java:306)
at fi.vtt.simantics.procore.internal.SessionRequestManager$3.run0(SessionRequestManager.java:177)
This means that the typical template diagram didn't have any kind of diagram page description in which case the synchronization rule shouldn't actually do anything besides log the situation.