From 8e64a82404fc3deabff40f9525259ea25eebea02 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 2 Jan 2006 14:49:27 +0000 Subject: [PATCH] Added a sort of hack which allows BPictureButton not to hang the app. Strangely, dereferencing a NULL pointer hangs the app instead of crashing it git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15793 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/View.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index 71251547bf..ad3e51360a 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -3026,7 +3026,9 @@ BView::EndPicture() } } - return NULL; + // TODO: Was NULL. We might revert when there is BPictures support + // in the app-server. For now this allows to avoid hangs with BPictureButtons + return cpicture; }