Return nil if find-symbol fails

This commit is contained in:
Joshua Suskalo 2021-09-16 14:09:29 -05:00
parent 8cd93eaf8e
commit db9f3b5209

View file

@ -416,7 +416,7 @@
(defn- find-symbol
"Gets the [[MemoryAddress]] of a symbol from the loaded libraries."
[sym]
(.. (CLinker/systemLookup) (lookup sym) (get)))
(.. (CLinker/systemLookup) (lookup sym) (orElse nil)))
(defn- method-type
"Gets the [[MethodType]] for a set of `args` and `ret` types."