diff options
author | Simon Rettberg | 2022-03-22 15:23:19 +0100 |
---|---|---|
committer | Simon Rettberg | 2022-03-22 15:23:19 +0100 |
commit | 468e7a098234169cbc3cfcc41b0d8a6f488f7f8a (patch) | |
tree | 8bf51ddcec0ff2b8f63d17ddd231b63668f10681 | |
parent | [client] Show local unhashed vs. hashed chunks in detailed progress view (diff) | |
download | tutor-module-468e7a098234169cbc3cfcc41b0d8a6f488f7f8a.tar.gz tutor-module-468e7a098234169cbc3cfcc41b0d8a6f488f7f8a.tar.xz tutor-module-468e7a098234169cbc3cfcc41b0d8a6f488f7f8a.zip |
[client] Fix NPE
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/filetransfer/TransferEvent.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/filetransfer/TransferEvent.java b/dozentenmodul/src/main/java/org/openslx/dozmod/filetransfer/TransferEvent.java index 3ce33e48..1ee16ade 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/filetransfer/TransferEvent.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/filetransfer/TransferEvent.java @@ -68,7 +68,7 @@ public class TransferEvent { public TransferEvent(TransferState state, byte[] progress, long speedRaw, long virtualSpeedRaw, long remainingRaw, String errorMessage) { - this(state, progress, speedRaw, virtualSpeedRaw, remainingRaw, errorMessage, progress.length); + this(state, progress, speedRaw, virtualSpeedRaw, remainingRaw, errorMessage, progress == null ? 0 : progress.length); } } |