Author: alessio.soldano(a)jboss.com
Date: 2013-03-18 13:54:33 -0400 (Mon, 18 Mar 2013)
New Revision: 17395
Modified:
shared-testsuite/trunk/src/main/java/org/jboss/wsf/test/AppclientHelper.java
Log:
Adding few NPE checks on AppclientHelper to avoid hiding other exceptional conditions that
led to premature undeploy..
Modified: shared-testsuite/trunk/src/main/java/org/jboss/wsf/test/AppclientHelper.java
===================================================================
---
shared-testsuite/trunk/src/main/java/org/jboss/wsf/test/AppclientHelper.java 2013-03-18
16:16:30 UTC (rev 17394)
+++
shared-testsuite/trunk/src/main/java/org/jboss/wsf/test/AppclientHelper.java 2013-03-18
17:54:33 UTC (rev 17395)
@@ -94,10 +94,19 @@
finally
{
s.release();
- ap.outTask.kill();
- ap.errTask.kill();
- ap.process.destroy();
- ap.log.close();
+ //NPE checks to avoid hiding other exceptional conditions that led to premature
undeploy..
+ if (ap.output != null) {
+ ap.outTask.kill();
+ }
+ if (ap.errTask != null) {
+ ap.errTask.kill();
+ }
+ if (ap.process != null) {
+ ap.process.destroy();
+ }
+ if (ap.log != null) {
+ ap.log.close();
+ }
}
}
Show replies by date