Prevent exception with isolate failed to start

R=scheglov@google.com

Review-Url: https://codereview.chromium.org/2986123002 .
This commit is contained in:
Brian Wilkerson 2017-07-28 08:26:30 -07:00
parent 472bf54d96
commit adb482002b

View file

@ -280,10 +280,12 @@ abstract class ServerIsolateChannel implements ServerCommunicationChannel {
@override
void sendRequest(Request request) {
Map<String, Object> json = request.toJson();
String encodedRequest = JSON.encode(json);
instrumentationService.logPluginRequest(pluginId, encodedRequest);
_sendPort.send(json);
if (_sendPort != null) {
Map<String, Object> json = request.toJson();
String encodedRequest = JSON.encode(json);
instrumentationService.logPluginRequest(pluginId, encodedRequest);
_sendPort.send(json);
}
}
/**