summaryrefslogtreecommitdiff
path: root/scripting/source
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/source')
-rw-r--r--scripting/source/runtimemgr/ScriptNameResolverImpl.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripting/source/runtimemgr/ScriptNameResolverImpl.cxx b/scripting/source/runtimemgr/ScriptNameResolverImpl.cxx
index c6479e42c44d..5968b1dbd675 100644
--- a/scripting/source/runtimemgr/ScriptNameResolverImpl.cxx
+++ b/scripting/source/runtimemgr/ScriptNameResolverImpl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ScriptNameResolverImpl.cxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: dfoster $ $Date: 2003-03-04 18:34:53 $
+ * last change: $Author: dfoster $ $Date: 2003-03-06 15:31:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -333,6 +333,12 @@ throw ( lang::IllegalArgumentException, script::CannotConvertException, RuntimeE
#endif
}
+ if ( !resolvedName.is() )
+ {
+ throw lang::IllegalArgumentException( OUSTR(
+ "ScriptNameResolverImpl::resolve: no script found for uri=" ).concat( scriptURI ),
+ Reference< XInterface > (), 0 );
+ }
return resolvedName;
}