summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rtlil.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc
index 7bd67e08..d64a37bb 100644
--- a/kernel/rtlil.cc
+++ b/kernel/rtlil.cc
@@ -1152,6 +1152,9 @@ bool RTLIL::SigSpec::parse(RTLIL::SigSpec &sig, RTLIL::Module *module, std::stri
continue;
}
+ if (module == NULL)
+ return false;
+
if (netname[0] != '$' && netname[0] != '\\')
netname = "\\" + netname;