Commit 1f239917 authored by Tiago Jorge's avatar Tiago Jorge
Browse files

Change condition of commit 29448e32 (was too...

Change condition of commit 29448e32 (was too strong and could raise index exception)
parent 9c34b707
...@@ -386,10 +386,10 @@ def ProcessCustomBackends( ...@@ -386,10 +386,10 @@ def ProcessCustomBackends(
else: else:
panic("Unexpected call of getCustomBackends...") # pragma: no cover panic("Unexpected call of getCustomBackends...") # pragma: no cover
for si in [x for x in SystemsAndImplementations if x[2] is not None and x[4] is not None and (x[2].lower() in ["gui_ri", "gui_pi", "vhdl"] or (x[2].lower() == "c" and x[4] is not ''))]: for si in [x for x in SystemsAndImplementations if x[2] is not None and (x[2].lower() in ["gui_ri", "gui_pi", "vhdl"] or (x[2].lower() == "c" and len(x)>4 and x[4] is not ''))]:
# We do, start the work # We do, start the work
spName, sp_impl, lang, maybeFVname = si[0], si[1], si[2], si[3] spName, sp_impl, lang, maybeFVname = si[0], si[1], si[2], si[3]
if si[2].lower() == "c" and si[4] is not '': if si[2].lower() == "c" and len(si)>4 and si[4] is not '':
lang = "vhdl" lang = "vhdl"
sp = commonPy.aadlAST.g_apLevelContainers[spName] sp = commonPy.aadlAST.g_apLevelContainers[spName]
if len(sp._params) == 0: if len(sp._params) == 0:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment