Chromium Code Reviews| Index: tools/testing/dart/http_server.dart |
| diff --git a/tools/testing/dart/http_server.dart b/tools/testing/dart/http_server.dart |
| index b939e2cd45c1c839309cefc8c51657b158ac475f..ad542d7a8aa24345df80d3b6720086a202caaaa4 100644 |
| --- a/tools/testing/dart/http_server.dart |
| +++ b/tools/testing/dart/http_server.dart |
| @@ -46,5 +46,5 @@ void startHttpServer(String host, int port) { |
| } |
| terminateHttpServer() { |
| - _httpServer.close(); |
| + if (_httpServer != null) _httpServer.close(); |
| } |