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

Unified Diff: dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/server/VmUtils.java

Issue 125033003: Version 1.1.0-dev.5.1 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 11 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
Index: dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/server/VmUtils.java
===================================================================
--- dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/server/VmUtils.java (revision 31466)
+++ dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/server/VmUtils.java (working copy)
@@ -39,6 +39,11 @@
// Use the URI class to convert things like '%20' ==> ' '.
URI uri = URI.create(url);
+ // If there's no provided uri scheme, then return the original url.
+ if (uri.getScheme() == null) {
+ return url;
+ }
+
if (url.startsWith(ECLIPSE_FORMAT)) {
// The VM also wants file urls to start with file:///, not file:/.
url = uri.getScheme() + "://" + uri.getPath();
« no previous file with comments | « no previous file | dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/util/LaunchConfigResourceResolver.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698