From 6f48e138a43a445d3ccfcbd1966802a554c04b0a Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 13 Jul 2018 04:04:11 +0200 Subject: [PATCH] TunnelEditorFragment: binding might be null Signed-off-by: Jason A. Donenfeld --- .../com/wireguard/android/fragment/TunnelEditorFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java b/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java index a6e315f9..e6e3a19e 100644 --- a/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java +++ b/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java @@ -107,6 +107,8 @@ public class TunnelEditorFragment extends BaseFragment implements AppExclusionLi private final Observable.OnPropertyChangedCallback breakObjectOrientedLayeringHandler = new Observable.OnPropertyChangedCallback() { @Override public void onPropertyChanged(final Observable sender, final int propertyId) { + if (binding == null) + return; final Config.Observable config = binding.getConfig(); if (config == null) return;