<h3>Contribution description</h3>
<p>If no handler is registered for type, return NULL instead of trying to dereference a NULL pointer.</p>
<h3>Testing procedure</h3>

<h3>Issues/PRs references</h3>


<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/16629'>https://github.com/RIOT-OS/RIOT/pull/16629</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>gnrc_netreg: bail out if type is not registered</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16629/files#diff-bdd03486473bf6bf593033c52379e2eb824423f46b93cc6432acb985dfb3df42">sys/net/gnrc/netreg/gnrc_netreg.c</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/16629.patch'>https://github.com/RIOT-OS/RIOT/pull/16629.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/16629.diff'>https://github.com/RIOT-OS/RIOT/pull/16629.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16629">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYAFLGZJCL3YV47TEKTTWW3PPANCNFSM5AA5CSCA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYACAMDDEZ6V4HQQDVDTWW3PPA5CNFSM5AA5CSCKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4OAGMKXA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16629",
"url": "https://github.com/RIOT-OS/RIOT/pull/16629",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>