<p dir="auto">This prevents a potential crash if <code>sidebar_update_tag_list()</code> is called with update=true and document=NULL.</p>
<p dir="auto">Found this by accident while testing the tag tree filter PR.<br>
Currently, this is no problem as <code>sidebar_update_tag_list()</code> is not called with update=true and document=NULL but just in case it might happen.</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/3080'>https://github.com/geany/geany/pull/3080</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/geany/geany/pull/3080/commits/db1b054abdaa693d5e7b08ff283f81e55f3e73c5" class="commit-link">db1b054</a>  Update doc->priv->tag_tree_dirty only if doc is set</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/geany/geany/pull/3080/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3080/files#diff-60c6b82fd3d6993ce8daa063f0a1c48a7967dd3196862450f3c63b0b7b28bd7c">src/sidebar.c</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/3080.patch'>https://github.com/geany/geany/pull/3080.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/3080.diff'>https://github.com/geany/geany/pull/3080.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/3080">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ5K4MRO4BZBZKP2XU3UUCIA5ANCNFSM5LD5GQOA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJ45URVC52DYXRLAYFLUUCIA5A5CNFSM5LD5GQOKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4QIXVWWQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany/pull/3080</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/3080",
"url": "https://github.com/geany/geany/pull/3080",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>