private boolean isSynchronizedConnector(ReadGraph graph, Resource templateConnection, Resource instanceConnector) throws DatabaseException {
DiagramResource DIA = DiagramResource.getInstance(graph);
Resource instanceConnection = graph.getPossibleObject(instanceConnector, DIA.IsConnectorOf);
+ if (instanceConnection == null)
+ return false;
return graph.hasStatement(instanceConnection, MOD.HasElementSource, templateConnection)
// If the master connection has been removed, this is all that's left
// to identify a connection that at least was originally synchronized