Skip to content

codegen: Check parameter before calling its interface method

Alynx Zhou requested to merge AlynxZhou/glib:add-null-check-codegen into main

If parameter is NULL, we still access its member, which leads into a core dump. This commit checks it before accessing. However, passing NULL to get interface is still a programmer mistake.

Helps: #2817 (closed)

Merge request reports