diff options
author | Andreas Bregas <ab@openoffice.org> | 2001-03-27 16:04:56 +0000 |
---|---|---|
committer | Andreas Bregas <ab@openoffice.org> | 2001-03-27 16:04:56 +0000 |
commit | 41b53efc003a43a8028f35505b44f2abf68f503c (patch) | |
tree | 335efe1c4c1842eea01a6fde22c0b931d3507f16 /basic | |
parent | 5ee0b59e6763b91e3f19de6104b38989d5e447a4 (diff) |
Check InputStreamProvider before using it
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/eventatt.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/basic/source/classes/eventatt.cxx b/basic/source/classes/eventatt.cxx index 30f45ac623bd..39499da13261 100644 --- a/basic/source/classes/eventatt.cxx +++ b/basic/source/classes/eventatt.cxx @@ -2,9 +2,9 @@ * * $RCSfile: eventatt.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: ab $ $Date: 2001-03-19 12:37:56 $ + * last change: $Author: ab $ $Date: 2001-03-27 17:04:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -565,6 +565,8 @@ void RTL_Impl_CreateUnoDialog( StarBASIC* pBasic, SbxArray& rPar, BOOL bWrite ) Any aElement = xNameAccess->getByName( aDialogName ); Reference< XInputStreamProvider > xISP; aElement >>= xISP; + if( !xISP.is() ) + return; // Create a DialogModel Reference< XInputStream > xInput( xISP->createInputStream() ); |