Skip to content

Commit

Permalink
[Fix] WorkManager crash
Browse files Browse the repository at this point in the history
  • Loading branch information
rh-id committed Jul 18, 2023
1 parent 62aad9d commit 2d8c0d7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public Result doWork() {
byte[] fileBytes = getInputData().getByteArray(Params.FILE);
byte[] fileExcludeBytes = getInputData().getByteArray(Params.FILE_ARRAYLIST);
File inputFile = SerializeUtils.deserialize(fileBytes);
ArrayList<File> fileArrayList = SerializeUtils.deserialize(fileExcludeBytes);
ArrayList<File> fileArrayList = fileExcludeBytes == null ? new ArrayList<>() :
SerializeUtils.deserialize(fileExcludeBytes);
Provider provider = BaseApplication.of(getApplicationContext()).getProvider();
ILogger logger = provider.get(ILogger.class);
MediaHelper mediaHelper = provider.get(MediaHelper.class);
Expand Down

0 comments on commit 2d8c0d7

Please sign in to comment.