resolves #1590 by checking for null

This commit is contained in:
AndyScherzinger 2017-09-25 13:30:18 +02:00
parent 41ea468d66
commit 4743545c82
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -1538,12 +1538,16 @@ public class OCFileListFragment extends ExtendedListFragment implements OCFileLi
}
final FileDisplayActivity fileDisplayActivity = (FileDisplayActivity) getActivity();
fileDisplayActivity.runOnUiThread(new Runnable() {
@Override
public void run() {
fileDisplayActivity.setIndeterminate(false);
}
});
if (fileDisplayActivity != null) {
fileDisplayActivity.runOnUiThread(new Runnable() {
@Override
public void run() {
if (fileDisplayActivity != null) {
fileDisplayActivity.setIndeterminate(false);
}
}
});
}
}
return remoteOperationResult.isSuccess();