Prevent NPE

This commit is contained in:
M66B 2022-09-29 21:58:28 +02:00
parent f86dcc6f78
commit 8edc9b0bd4
1 changed files with 2 additions and 1 deletions

View File

@ -433,7 +433,8 @@ public class FragmentDialogInsertLink extends FragmentDialogBase {
protected void onProgress(CharSequence status, Bundle data) {
int progress = data.getInt("progress");
Log.i("Send progress=" + progress);
pbUpload.setProgress(progress);
if (pbUpload != null)
pbUpload.setProgress(progress);
}
@Override