<p><a href="https://github.com/techee" class="user-mention">@techee</a> <code>NULL</code> check was removed in <a href="https://github.com/geany/geany/commit/292383c197b72c56f44b68b14845093adfed7133" class="commit-link"><tt>292383c</tt></a>, was that really expected?<br>
Other solution would be early return in <code>autocomplete_scope()</code> when <code>doc->tm_file</code> is <code>NULL</code>, but that would mean that there wouldn't be scope completion in unsaved files.</p>
<p>We need a fix ASAP, as it happens whenever typing <code>.</code> in an unsaved file, or a file with no tags parser. E.g. you can reproduce by opening a new geany <code>geany -vi</code> and typing <code>a.</code>, <em>boom</em>.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/geany/geany/pull/943'>https://github.com/geany/geany/pull/943</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Avoid NULL dereference when typing a dot in a file without tags</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/geany/geany/pull/943/files#diff-0">tagmanager/src/tm_workspace.c</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/geany/geany/pull/943.patch'>https://github.com/geany/geany/pull/943.patch</a></li>
<li><a href='https://github.com/geany/geany/pull/943.diff'>https://github.com/geany/geany/pull/943.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/943">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ0CqpMeIpmkxj6mDtkTH9qXpB5ivks5prDtJgaJpZM4Hq1wF.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/geany/geany/pull/943"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>