Skip to content

Commit 2c384d6

Browse files
author
markjrzhang
committed
update version
1 parent 8a79d91 commit 2c384d6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.qcloud</groupId>
66
<artifactId>cos_api</artifactId>
7-
<version>5.6.233</version>
7+
<version>5.6.235</version>
88
<packaging>jar</packaging>
99
<name>cos-java-sdk</name>
1010
<description>java sdk for qcloud cos</description>

src/main/java/com/qcloud/cos/model/ciModel/template/MediaTemplateTransTplObject.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ public void setVideo(MediaVideoObject video) {
6161
}
6262

6363
public MediaTimeIntervalObject getTimeInterval() {
64+
if (timeInterval == null) {
65+
timeInterval = new MediaTimeIntervalObject();
66+
}
6467
return timeInterval;
6568
}
6669

@@ -69,6 +72,9 @@ public void setTimeInterval(MediaTimeIntervalObject timeInterval) {
6972
}
7073

7174
public MediaSnapshotObject getSnapshot() {
75+
if (snapshot == null) {
76+
snapshot = new MediaSnapshotObject();
77+
}
7278
return snapshot;
7379
}
7480

0 commit comments

Comments
 (0)