TunnelEditorFragment: binding might be null

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2018-07-13 04:04:11 +02:00
parent 21c15fe4ea
commit 6f48e138a4

View File

@ -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;