summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripting/source/provider/MasterScriptProvider.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx
index a4733944c844..f7dca4dd6172 100644
--- a/scripting/source/provider/MasterScriptProvider.cxx
+++ b/scripting/source/provider/MasterScriptProvider.cxx
@@ -695,7 +695,9 @@ MasterScriptProvider::hasByName( const OUString& aName ) throw (RuntimeException
result = xCont->hasByName( aName );
}
- else
+ // If this is a document provider then we shouldn't
+ // have a PackageProvider
+ else if (!m_xModel.is())
{
throw RuntimeException( "PackageMasterScriptProvider is unitialised",
Reference< XInterface >() );