java.lang.IllegalStateException: unsupported protocol: 'mailto'
[idea/community.git] / 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