Skip to content

Instantly share code, notes, and snippets.

View dgtv's full-sized avatar
🇺🇦

Taras Dehtiar dgtv

🇺🇦
View GitHub Profile
@dgtv
dgtv / OkHttpBug.java
Last active March 15, 2018 19:37
OkHttp NullPointerException when hostname is null on all versions after 3.2.0
import org.junit.Test;
import okhttp3.Call;
import okhttp3.OkHttpClient;
import okhttp3.Request;
public class OkHttpBug {
String urlThatFails = "http://localhost:54321";
@Test public void test() throws Exception {