Skip to content

Commit

Permalink
see #34: workaround for NG bug related to missing BaseVoltages
Browse files Browse the repository at this point in the history
  • Loading branch information
picaultj authored and marheror committed Nov 17, 2020
1 parent 0c17e70 commit 571b184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ocl/service/TransformationService.java
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ public synchronized Document createMerge(Profile key,Profile eqbd, Profile tpbd,
for (Node child : convertToArray(TPs2add.get(t).getChildNodes())) {
if(!StringUtils.isEmpty(child.getLocalName()) && StringUtils.contains(child.getLocalName(),"BaseVoltage")){
bv = (child.getAttributes().item(0).getNodeValue().replace("#",""));
if(!declaredBV.containsKey(bv)){
if ((!declaredBV.containsKey(bv)) && (BVmap.get(bv)!=null)){
Node node1 = target.importNode(BVmap.get(bv),true);
addModelBrlndDependency(target.getDocumentElement().appendChild(node1),EQ.type,eqbd.id,target);
declaredBV.put(bv,node1);
Expand Down

0 comments on commit 571b184

Please sign in to comment.