changeset 3070 | 0175bbf9a833 |
parent 2 | 90ce3da70b43 |
child 5506 | 202f599c92aa |
--- a/jdk/test/com/sun/net/httpserver/Test12.java Thu Jun 25 17:01:56 2009 -0400 +++ b/jdk/test/com/sun/net/httpserver/Test12.java Mon Jun 29 13:10:33 2009 +0100 @@ -85,9 +85,12 @@ System.out.println ("OK"); } finally { delay(); - s1.stop(2); - s2.stop(2); - executor.shutdown (); + if (s1 != null) + s1.stop(2); + if (s2 != null) + s2.stop(2); + if (executor != null) + executor.shutdown (); } }