Commit 95a2b5a
committed
Handle race condition in CRT tx pause
If S3MetaRequestPauseObservable#pause is invoked before
S3MetaRequestPauseObservable#subscribe is executed, an NPE can occur.
This can happen if the transfer hasn't actually begin before the pause()
was invoked.
Fix this by returning `null` in this case, which `CrtFileUpload` treats
as transfer not yet started.1 parent bf44954 commit 95a2b5a
1 file changed
Lines changed: 5 additions & 1 deletion
File tree
- services/s3/src/main/java/software/amazon/awssdk/services/s3/internal/crt
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
0 commit comments