From c1381da97cd8e985f0c4d30b0a7f06b96b3b5b02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 29 Feb 2004 22:54:27 +0000 Subject: [PATCH] Fixed a crashing bug when there is no TypeEditorView. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6827 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/diskprobe/AttributeWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/diskprobe/AttributeWindow.cpp b/src/apps/diskprobe/AttributeWindow.cpp index 41bac7022a..f8f803163a 100644 --- a/src/apps/diskprobe/AttributeWindow.cpp +++ b/src/apps/diskprobe/AttributeWindow.cpp @@ -261,7 +261,8 @@ AttributeWindow::MessageReceived(BMessage *message) bool AttributeWindow::QuitRequested() { - fTypeEditorView->CommitChanges(); + if (fTypeEditorView != NULL) + fTypeEditorView->CommitChanges(); bool quit = fProbeView->QuitRequested(); if (!quit)