diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-06-15 20:17:23 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-06-15 20:17:23 +0100 |
commit | 79b08488f725db10c29afe52250897fc830496e3 (patch) | |
tree | 6560469533ec491c63226caf61f8cedfcf6b2bc8 | |
parent | 1658a29ec6bf24a4c144ad3cd36a41ebf35756ff (diff) | |
download | Nim-79b08488f725db10c29afe52250897fc830496e3.tar.gz |
Fix idetools --def crash.
-rw-r--r-- | compiler/suggest.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/suggest.nim b/compiler/suggest.nim index a46c6a082..db95c480f 100644 --- a/compiler/suggest.nim +++ b/compiler/suggest.nim @@ -322,7 +322,7 @@ proc suggestSym*(n: PNode, s: PSym) {.inline.} = findUsages(n, s) if optDef in gGlobalOptions: findDefinition(n, s) - if isServing: + if isServing and not n.isNil: addToSourceMap(s, n.info) proc markUsed(n: PNode, s: PSym) = |