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

Unified Diff: utils/pub/utils.dart

Issue 12847002: Fix pub_lish_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « utils/pub/command_lish.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/utils.dart
diff --git a/utils/pub/utils.dart b/utils/pub/utils.dart
index a48907926ff00b101c470d9bab19a0dc2c780316..1d687f3e3c67048a5faa7a04e1fad30463803aa5 100644
--- a/utils/pub/utils.dart
+++ b/utils/pub/utils.dart
@@ -318,6 +318,8 @@ bool urisEqual(Uri uri1, Uri uri2) =>
/// Return [uri] with redundant port information removed.
Uri canonicalizeUri(Uri uri) {
+ if (uri == null) return null;
+
var sansPort = new Uri.fromComponents(
scheme: uri.scheme, userInfo: uri.userInfo, domain: uri.domain,
path: uri.path, query: uri.query, fragment: uri.fragment);
« no previous file with comments | « utils/pub/command_lish.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698