1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-27 05:11:30 +00:00

Fix crash in case DrawerFragment is opened early (fixes #629).

This commit is contained in:
Felix Ableitner 2016-04-26 23:08:35 +02:00
parent bb17c53d4c
commit cc74cd1fcf

View file

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