From 4dd7b928ea912fa4912084dfe5f89a14bc970d3c Mon Sep 17 00:00:00 2001
From: Cedric Degea <invalid@invalid.com>
Date: Wed, 9 Apr 2014 23:33:59 +0200
Subject: [PATCH] BOptionPopUp: check for non-NULL Message().
Fixes #10733
---
src/kits/interface/OptionPopUp.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/kits/interface/OptionPopUp.cpp b/src/kits/interface/OptionPopUp.cpp
index c31650c..4b1c2b7 100644
a
|
b
|
BOptionPopUp::GetOptionAt(int32 index, const char** outName, int32* outValue)
|
104 | 104 | |
105 | 105 | if (menu != NULL) { |
106 | 106 | BMenuItem* item = menu->ItemAt(index); |
107 | | if (item != NULL) { |
| 107 | if (item != NULL && item->Message() != NULL) { |
108 | 108 | if (outName != NULL) |
109 | 109 | *outName = item->Label(); |
110 | 110 | if (outValue != NULL && item->Message() != NULL) |