Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: runtime/bin/http_impl.dart

Issue 9863031: Don't propagate http client error, when no response object is available. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/standalone/src/io/HttpClientTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/http_impl.dart
===================================================================
--- runtime/bin/http_impl.dart (revision 5866)
+++ runtime/bin/http_impl.dart (working copy)
@@ -932,7 +932,7 @@
}
void _propagateError(Exception e) {
- if (_response._streamErrorHandler != null) {
+ if (_response != null && _response._streamErrorHandler != null) {
_response._streamErrorHandler(e);
}
}
« no previous file with comments | « no previous file | tests/standalone/src/io/HttpClientTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698