Skip to content

Commit d3c6e74

Browse files
Yichi ZhangYichi Zhang
authored andcommitted
fix Point build() Nullptr bug
1 parent 44516de commit d3c6e74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/influxdb/dto/Point.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public Point build() {
142142
Point point = new Point();
143143
point.setFields(this.fields);
144144
point.setMeasurement(this.measurement);
145-
if (this.time != 0) {
145+
if (this.time != null) {
146146
point.setTime(this.time);
147147
point.setPrecision(this.precision);
148148
} else {

0 commit comments

Comments
 (0)