GitLab Commit is coming up on August 3-4. Learn how to innovate together using GitLab, the DevOps platform. Register for free: gitlabcommitvirtual2021.com

Commit c211efd0 authored by Benoît Minisini's avatar Benoît Minisini
Browse files

Creating a control with a NULL container now raises an error instead of crashing.

[GB.GTK]
* BUG: Creating a control with a NULL container now raises an error instead of crashing.

[GB.GTK3]
* BUG: Creating a control with a NULL container now raises an error instead of crashing.
parent 0d2f6c4a
Pipeline #242599562 passed with stage
in 25 minutes and 15 seconds
......@@ -371,7 +371,11 @@ void InitControl(gControl *control, CWIDGET *widget)
CWIDGET *GetContainer(CWIDGET *control)
{
if (!control) return NULL;
if (!control)
{
GB.Error("Null container");
GB.Propagate();
}
if (!CLASS_UserContainer) CLASS_UserContainer=GB.FindClass("UserContainer");
if (!CLASS_UserControl) CLASS_UserControl=GB.FindClass("UserControl");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment