BOptionPopUp: check for non-NULL Message(). Fixes #10733

Signed-off-by: John Scipione <[email protected]>
This commit is contained in:
Cedric Degea
2014-06-14 20:50:10 -04:00
committed by John Scipione
parent 1f17f750db
commit 076cb5a752
+1 -1
View File
@@ -107,7 +107,7 @@ BOptionPopUp::GetOptionAt(int32 index, const char** outName, int32* outValue)
if (item != NULL) {
if (outName != NULL)
*outName = item->Label();
if (outValue != NULL)
if (outValue != NULL && item->Message() != NULL)
item->Message()->FindInt32("be:value", outValue);
result = true;