TunnelEditorFragment: binding might be null
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
21c15fe4ea
commit
6f48e138a4
@ -107,6 +107,8 @@ public class TunnelEditorFragment extends BaseFragment implements AppExclusionLi
|
|||||||
private final Observable.OnPropertyChangedCallback breakObjectOrientedLayeringHandler = new Observable.OnPropertyChangedCallback() {
|
private final Observable.OnPropertyChangedCallback breakObjectOrientedLayeringHandler = new Observable.OnPropertyChangedCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onPropertyChanged(final Observable sender, final int propertyId) {
|
public void onPropertyChanged(final Observable sender, final int propertyId) {
|
||||||
|
if (binding == null)
|
||||||
|
return;
|
||||||
final Config.Observable config = binding.getConfig();
|
final Config.Observable config = binding.getConfig();
|
||||||
if (config == null)
|
if (config == null)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user