<p>When the plugin Numbered Bookmarks is switched on, Geany crashes instantly on start-up. Running GDB shows the following warning:</p>

<p>Program received signal SIGSEGV, Segmentation fault.<br>
0x00007fffd153f2f4 in SetMarker (sci=0x9fa4a0, bookmarkNumber=1, markerNumber=2, line=247) at geanynumberedbookmarks.c:885<br>
885     fd=GetFileData(document_get_current()->file_name);</p>

<p>I assume that at start-up the call <b>document_get_current()</b> will return a NULL pointer? And asking a <b>file_name</b> member will cause a segfault?</p>

<p>Tested on geany-plugins commit <a href="https://github.com/geany/geany-plugins/commit/4c1137373f78bd13df9ee46c10876a3142675573" class="commit-link"><tt>4c11373</tt></a> of Nov. 8th, 2015.</p>

<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-plugins/issues/301">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ76qOhm3FB91oRnSTPLxH1fmGldbks5pEOJHgaJpZM4Ge1A-.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-plugins/issues/301"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>