diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-13 04:04:11 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-13 04:04:11 +0200 |
commit | 6f48e138a43a445d3ccfcbd1966802a554c04b0a (patch) | |
tree | fe6e8f0b07a69002b531721c2e24ec42118b80f0 /app | |
parent | 21c15fe4ea6472517d672da46d9aa774a9e3253c (diff) |
TunnelEditorFragment: binding might be null
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java | 2 |
1 files changed, 2 insertions, 0 deletions
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; |