summaryrefslogtreecommitdiff
path: root/extensions/source
diff options
context:
space:
mode:
authorKai Ahrens <ka@openoffice.org>2002-11-05 11:02:56 +0000
committerKai Ahrens <ka@openoffice.org>2002-11-05 11:02:56 +0000
commit6d4e707ed3cd28e7691b6ebe6ea260c818489093 (patch)
tree45a471b81f64f5996aad2c5628fffb468ce5e974 /extensions/source
parentaf9591a8c81ff17cb9c648fb9ea4d3db2da87b93 (diff)
#104606#: check for NULL pointer
Diffstat (limited to 'extensions/source')
-rw-r--r--extensions/source/scanner/scanwin.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/extensions/source/scanner/scanwin.cxx b/extensions/source/scanner/scanwin.cxx
index 0aa40305976e..ab9fc4d22e5f 100644
--- a/extensions/source/scanner/scanwin.cxx
+++ b/extensions/source/scanner/scanwin.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: scanwin.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: ka $ $Date: 2002-07-04 15:20:51 $
+ * last change: $Author: ka $ $Date: 2002-11-05 12:02:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -638,8 +638,11 @@ IMPL_LINK( Twain, ImpNotifyHdl, ImpTwain*, nEvent )
if( meState != TWAIN_STATE_DONE )
meState = TWAIN_STATE_CANCELED;
- mpImpTwain->Destroy();
- mpImpTwain = NULL;
+ if( mpImpTwain )
+ {
+ mpImpTwain->Destroy();
+ mpImpTwain = NULL;
+ }
if( mpMgr && mxListener.is() )
mxListener->disposing( com::sun::star::lang::EventObject( REF( XInterface )( static_cast< OWeakObject* >( mpMgr ) ) ) );