BOptionPopUp: check for non-NULL Message(). Fixes #10733
Signed-off-by: John Scipione <[email protected]>
This commit is contained in:
committed by
John Scipione
parent
1f17f750db
commit
076cb5a752
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user