changeset 22346:2e49ab3d6b48

ObjectProxy.cc: Prevent calling slotUpdate on uninitialized object (#48519)
author Andreas Weber <andy.weber.aw@gmail.com>
date Sat, 20 Aug 2016 09:04:14 +0200
parents 752d79f86781
children 2b1612cf38e4
files libgui/graphics/ObjectProxy.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/graphics/ObjectProxy.cc	Fri Aug 19 16:35:59 2016 -0400
+++ b/libgui/graphics/ObjectProxy.cc	Sat Aug 20 09:04:14 2016 +0200
@@ -86,7 +86,7 @@
 {
   if (octave_thread::is_octave_thread ())
     emit sendUpdate (pId);
-  else
+  else if (m_object)
     m_object->slotUpdate (pId);
 }