juergen 2003/07/17 06:53:03
Modified:
testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor
TProcessors.java
Log:
fixed a pontential NPE
Revision Changes Path
1.61 +6 -5
jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java
Index: TProcessors.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- TProcessors.java 16 Jul 2003 12:19:50 -0000 1.60
+++ TProcessors.java 17 Jul 2003 13:53:03 -0000 1.61
@@ -1573,7 +1573,8 @@
private ResponseBodyAssert assertFactory(HttpMethod m, Element
expectedResponseElement, List expectedResponseCodes) throws Exception {
// check for the wildcard
- if (expectedResponseAsString(expectedResponseElement).equals("*")) return
null;
+ String expectedResponseString =
expectedResponseAsString(expectedResponseElement);
+ if (expectedResponseString == null || expectedResponseString.equals("*"))
return null;
ResponseBodyAssert result = null;
if(m instanceof PropFindMethod){
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]