Skip to content

Commit

Permalink
Fixed|Widgets|libappfw: Potential crash when opening a panel widget
Browse files Browse the repository at this point in the history
In the rare situation where several assets changed their state during
the same event triggering loop, PanelWidget may have accessed a null
pointer.
  • Loading branch information
skyjake committed Feb 22, 2017
1 parent 1fa3ac3 commit 8377314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/sdk/libappfw/src/widgets/panelwidget.cpp
Expand Up @@ -190,7 +190,7 @@ DENG_GUI_PIMPL(PanelWidget)
LOG_AS("PanelWidget");

// All of the assets in the pending show group are now ready, let's open!
if (pendingShow->isReady())
if (pendingShow && pendingShow->isReady())
{
LOGDEV_XVERBOSE("All assets ready, resuming animation", "");

Expand Down

0 comments on commit 8377314

Please sign in to comment.