it's ok for there to be no form yet

This commit is contained in:
ehouse 2003-12-12 10:18:39 +00:00
parent 93303973e3
commit 98fd464f3d

View file

@ -352,7 +352,7 @@ getFormRefcon()
{
void* result = NULL;
FormPtr form = FrmGetFormPtr( XW_MAIN_FORM );
XP_ASSERT( !!form );
if ( !!form ) {
UInt16 index = FrmGetObjectIndex( form, REFCON_GADGET_ID );
result = FrmGetGadgetData( form, index );