summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/nimhcr.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nimhcr.nim b/lib/nimhcr.nim
index 26b570b62..79f3fd350 100644
--- a/lib/nimhcr.nim
+++ b/lib/nimhcr.nim
@@ -347,7 +347,7 @@ when defined(createNimHcr):
 
   proc hcrGetProc*(module: cstring, name: cstring): pointer {.nimhcr.} =
     trace "  get proc: ", module.sanitize, " ", name
-    return modules[$module].procs[$name].jump
+    return modules[$module].procs.getOrDefault($name, ProcSym()).jump
 
   proc hcrRegisterGlobal*(module: cstring,
                           name: cstring,