proyal 2002/06/22 20:32:40
Modified: fortress/src/java/org/apache/excalibur/fortress
AbstractContainer.java
Log:
Remove explicit toString() on hint which will cause a NPE when it is not
passed.
Revision Changes Path
1.41 +3 -3
jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/AbstractContainer.java
Index: AbstractContainer.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/AbstractContainer.java,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- AbstractContainer.java 18 Jun 2002 18:45:36 -0000 1.40
+++ AbstractContainer.java 23 Jun 2002 03:32:40 -0000 1.41
@@ -328,7 +328,7 @@
if( null == hintMap )
{
- throw new ServiceException( role + "/" + hint.toString(),
"Component does not exist" );
+ throw new ServiceException( role + "/" + hint, "Component does
not exist" );
}
if( null == hint )
@@ -347,7 +347,7 @@
if( null == value )
{
- throw new ServiceException( role + "/" + hint.toString(),
"Component does not exist" );
+ throw new ServiceException( role + "/" + hint, "Component does
not exist" );
}
return value;
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>