summaryrefslogtreecommitdiff
path: root/scripting/source
diff options
context:
space:
mode:
authorDuncan Foster <dfoster@openoffice.org>2003-03-06 14:31:02 +0000
committerDuncan Foster <dfoster@openoffice.org>2003-03-06 14:31:02 +0000
commit77f15a5f749cb8edad76603d53c6e08db49acbc4 (patch)
treee46e6b29f7216be07b5cf468071c81dc1e6b3574 /scripting/source
parent8b63d857aabce5c8b1ef403489f6a8550dfdfff4 (diff)
#i12089#. throwing IllegalArgumentException (as per the IDL) if no macthing script found.
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;
}