From 7364f2540e34442a65ccd8c6d39b60ede3c63cf8 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 13 Jul 2018 04:13:35 +0200 Subject: BaseFragment: do not allow tunnel to be null Signed-off-by: Jason A. Donenfeld --- app/src/main/java/com/wireguard/android/fragment/BaseFragment.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/src/main/java/com') diff --git a/app/src/main/java/com/wireguard/android/fragment/BaseFragment.java b/app/src/main/java/com/wireguard/android/fragment/BaseFragment.java index f4c6ea81..a5e28c81 100644 --- a/app/src/main/java/com/wireguard/android/fragment/BaseFragment.java +++ b/app/src/main/java/com/wireguard/android/fragment/BaseFragment.java @@ -91,6 +91,8 @@ public abstract class BaseFragment extends Fragment implements OnSelectedTunnelC tunnel = ((TunnelListItemBinding) binding).getItem(); else return; + if (tunnel == null) + return; Application.onHaveBackend(backend -> { if (backend instanceof GoBackend) { -- cgit v1.2.3