Skip to content

Commit 855c238

Browse files
committed
[NF] Handle empty prefix in flattenBindingExp.
1 parent c89e987 commit 855c238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OMCompiler/Compiler/NFFrontEnd/NFFlatten.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ protected
861861
algorithm
862862
par := listHead(parents);
863863

864-
if InstNode.isComponent(par) then
864+
if InstNode.isComponent(par) and not ComponentRef.isEmpty(pre) then
865865
pre_node := ComponentRef.node(pre);
866866

867867
while not InstNode.refEqual(pre_node, par) loop

0 commit comments

Comments
 (0)