[haiku-commits] haiku: hrev48344 - src/add-ons/screen_savers/spider

  • From: pulkomandy@xxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 20 Nov 2014 10:46:30 +0100 (CET)

hrev48344 adds 1 changeset to branch 'master'
old head: 05a922cd4da0be9b032ca14b47504fc297dc9e24
new head: 932b333fa2644ef5e538f97b53063ae1cbe2befc
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=932b333+%5E05a922c

----------------------------------------------------------------------------

932b333: Fix called C++ object pointer is null
  
  Signed-off-by: Adrien Destugues <pulkomandy@xxxxxxxxx>
  
  Fixes #9904.

                                      [ Murai Takashi <tmurai01@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev48344
Commit:      932b333fa2644ef5e538f97b53063ae1cbe2befc
URL:         http://cgit.haiku-os.org/haiku/commit/?id=932b333
Author:      Murai Takashi <tmurai01@xxxxxxxxx>
Date:        Mon Jul 29 11:05:43 2013 UTC
Committer:   Adrien Destugues <pulkomandy@xxxxxxxxx>
Commit-Date: Thu Nov 20 09:45:15 2014 UTC

Ticket:      https://dev.haiku-os.org/ticket/9904

----------------------------------------------------------------------------

1 file changed, 4 insertions(+)
src/add-ons/screen_savers/spider/SpiderSaver.cpp | 4 ++++

----------------------------------------------------------------------------

diff --git a/src/add-ons/screen_savers/spider/SpiderSaver.cpp 
b/src/add-ons/screen_savers/spider/SpiderSaver.cpp
index f5e20f9..7a78faf 100644
--- a/src/add-ons/screen_savers/spider/SpiderSaver.cpp
+++ b/src/add-ons/screen_savers/spider/SpiderSaver.cpp
@@ -294,6 +294,10 @@ SpiderSaver::_DrawInto(BView *view)
                                view->SetHighColor(2, 1, 1, 255);
                                break;
                }
+
+               if (fQueues[i] == NULL)
+                       continue;
+
                if (Polygon* p = fQueues[i]->Head()) {
                        view->SetDrawingMode(B_OP_ADD);
                        _DrawPolygon(p, view);


Other related posts:

  • » [haiku-commits] haiku: hrev48344 - src/add-ons/screen_savers/spider - pulkomandy