Fix crash disassembling library with dummy entry point

This commit is contained in:
baldurk
2024-05-20 14:51:03 +01:00
parent 38a7c7b338
commit 54b425e92e
@@ -374,6 +374,9 @@ EntryPointInterface::Sampler::Sampler(const Metadata *sampler)
EntryPointInterface::EntryPointInterface(const Metadata *entryPoint)
{
if(entryPoint->children[0] == NULL)
return;
function = entryPoint->children[0]->type;
name = entryPoint->children[1]->str;