Fix java.lang.NullPointerException in ConnectionFragment.