java.lang.IllegalStateException: unsupported protocol: 'mailto'
authorVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Wed, 24 Jun 2015 09:29:58 +0000 (11:29 +0200)
committerVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Wed, 24 Jun 2015 11:30:15 +0000 (13:30 +0200)
platform/lang-impl/src/com/intellij/openapi/paths/WebReferencesAnnotatorBase.java

index f4ad1bc2176b477b530129e4138efbae84915521..920393274cd4b0cb3752d703ff435970355cbb1f 100644 (file)
@@ -183,6 +183,10 @@ public abstract class WebReferencesAnnotatorBase extends ExternalAnnotator<WebRe
   }
 
   private static MyFetchResult doCheckUrl(@NotNull String url) {
+    if (url.startsWith("mailto")) {
+      return MyFetchResult.OK;
+    }
+
     try {
       return HttpRequests.request(url).connectTimeout(3000).readTimeout(3000).connect(new HttpRequests.RequestProcessor<MyFetchResult>() {
         @Override