- graph.claim(dst, DIA.AreConnected, DIA.AreConnected, connectedToDst);\r
+ if (connectedToDst != null) {\r
+ graph.claim(dst, DIA.AreConnected, DIA.AreConnected, connectedToDst);\r
+ } else {\r
+ throw new DatabaseException("Connection copying failed due to an invalid DIA.AreConnected link between source resources " + src + " <-> " + connectedToSrc);\r
+ }\r