diff options
Diffstat (limited to 'idl/source')
-rw-r--r-- | idl/source/prj/database.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx index 935a73095cee..3ac165ddcabe 100644 --- a/idl/source/prj/database.cxx +++ b/idl/source/prj/database.cxx @@ -624,9 +624,9 @@ sal_Bool SvIdlWorkingBase::ReadSvIdl( SvTokenStream & rInStm, sal_Bool bImported if( pTok->Is( SvHash_import() ) ) { rInStm.GetToken_Next(); - rInStm.Read( '(' ); // optional - pTok = rInStm.GetToken_Next(); - if( pTok->IsString() ) + bOk = rInStm.Read( '(' ); // optional + pTok = bOk ? rInStm.GetToken_Next() : NULL; + if( pTok && pTok->IsString() ) { OUString aFullName; if( osl::FileBase::E_None == osl::File::searchFileURL( |