mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-30 00:01:19 +00:00
Fix crash in case DrawerFragment is opened early (fixes #629).
This commit is contained in:
parent
bb17c53d4c
commit
cc74cd1fcf
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ public class DrawerFragment extends Fragment implements RestApi.OnReceiveSystemI
|
|||
* Invokes status callbacks.
|
||||
*/
|
||||
private void updateGui() {
|
||||
if (mActivity.getApi() == null || getActivity().isFinishing())
|
||||
if (mActivity.getApi() == null || getActivity() == null || getActivity().isFinishing())
|
||||
return;
|
||||
mActivity.getApi().getSystemInfo(this);
|
||||
mActivity.getApi().getConnections(this);
|
||||
|
|
Loading…
Reference in a new issue