package io.github.droidkaigi.confsched2017.view.helper;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.support.annotation.NonNull;

import timber.log.Timber;

public class IntentHelper {

    /**
     * Builds an intent of type Intent.ACTION_VIEW from the passed htmlUrl.
     * But, When intent.resolveActivity(context.getPackageManager()) == null is true, it return null.
     */
    public static Intent buildActionViewIntent(@NonNull Context context, @NonNull String htmlUrl) {
        Timber.i("buildActionViewIntent: url: %s", htmlUrl);

        Uri uri = Uri.parse(htmlUrl);
        Intent intent = new Intent(Intent.ACTION_VIEW, uri);

        if (intent.resolveActivity(context.getPackageManager()) == null) {
            return null;
        }

        return intent;
    }
}

@@ -179,16 +179,47 @@
 NonNull;
+%0Aimport android.webkit.URLUtil;
 %0A%0Aimport
@@ -620,24 +620,106 @@
  htmlUrl);%0A%0A
+        if (!URLUtil.isNetworkUrl(htmlUrl)) %7B%0A            return null;%0A        %7D%0A%0A
         Uri 

Add network url check