From 233f2b564e7707f79deb493444f28363ac10bfd4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 24 Jun 2015 01:38:17 +0300 Subject: Add missing checks on nonnull attributes to widgets. --- src/gui/widgets/widget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/widget.cpp') diff --git a/src/gui/widgets/widget.cpp b/src/gui/widgets/widget.cpp index 7fdab305e..023f4a035 100644 --- a/src/gui/widgets/widget.cpp +++ b/src/gui/widgets/widget.cpp @@ -516,6 +516,7 @@ void Widget::windowResized() Widget *Widget::callPostInit(Widget *const widget) { - widget->postInit(); + if (widget) + widget->postInit(); return widget; } -- cgit v1.2.3-60-g2f50