From 77f15a5f749cb8edad76603d53c6e08db49acbc4 Mon Sep 17 00:00:00 2001 From: Duncan Foster Date: Thu, 6 Mar 2003 14:31:02 +0000 Subject: #i12089#. throwing IllegalArgumentException (as per the IDL) if no macthing script found. --- scripting/source/runtimemgr/ScriptNameResolverImpl.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'scripting/source') 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; } -- cgit