Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit 80eb2dc

Browse files
committed
Fix possible null pointers when converting to primitive type.
(cherry picked from commit d7894b5)
1 parent 1a97929 commit 80eb2dc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/synapticloop/b2/response/B2HideFileResponse.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public class B2HideFileResponse extends BaseB2Response {
4444
private final String fileId;
4545
private final String fileName;
4646
private final Action action;
47-
private final int size;
48-
private final long uploadTimestamp;
47+
private final Integer size;
48+
private final Long uploadTimestamp;
4949

5050
/**
5151
* Instantiate a hide file response with the JSON response as a string from
@@ -80,9 +80,9 @@ public B2HideFileResponse(String json) throws B2ApiException {
8080

8181
public Action getAction() { return this.action; }
8282

83-
public int getSize() { return this.size; }
83+
public Integer getSize() { return this.size; }
8484

85-
public long getUploadTimestamp() { return this.uploadTimestamp; }
85+
public Long getUploadTimestamp() { return this.uploadTimestamp; }
8686

8787
@Override
8888
protected Logger getLogger() { return LOGGER; }

0 commit comments

Comments
 (0)