From 181ecd0c3bf27b47487f973fb83b988fd6ceaecf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Mar 2013 21:17:13 +0300 Subject: Another fixes after Coverity checks. --- src/gui/widgets/avatarlistbox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/avatarlistbox.cpp') diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index b69664ddd..f2907aaf3 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -293,7 +293,8 @@ void AvatarListBox::draw(gcn::Graphics *gcnGraphics) } } - setWidth(parent->getWidth() - 10); + if (parent) + setWidth(parent->getWidth() - 10); BLOCK_END("AvatarListBox::draw") } -- cgit v1.2.3-70-g09d2