Skip to content

Commit

Permalink
Update PipeTsFileResource.java
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveYurongSu committed Dec 2, 2024
1 parent 9bb06cd commit f6340c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public long getFileSize() {
}

public long getTsFileResourceSize() {
return tsFileResource.calculateRamSize();
return Objects.nonNull(tsFileResource) ? tsFileResource.calculateRamSize() : 0;
}

///////////////////// Reference Count /////////////////////
Expand Down

0 comments on commit f6340c1

Please sign in to comment.