summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
Diffstat (limited to 'basic')
-rw-r--r--basic/source/comp/codegen.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/basic/source/comp/codegen.cxx b/basic/source/comp/codegen.cxx
index 70fdc55af345..d71c8432b4fa 100644
--- a/basic/source/comp/codegen.cxx
+++ b/basic/source/comp/codegen.cxx
@@ -334,9 +334,13 @@ void SbiCodeGen::Save()
{
nUserData |= PARAM_INFO_WITHBRACKETS;
}
+ SbxParamInfo* pParam = NULL;
if( nUserData )
{
- SbxParamInfo* pParam = (SbxParamInfo*)pInfo->GetParam( i );
+ pParam = (SbxParamInfo*)pInfo->GetParam( i );
+ }
+ if( pParam )
+ {
pParam->nUserData = nUserData;
}
}