Skip to content

Commit 28ae888

Browse files
author
dapeng
committed
添加空置判断
1 parent 44be6d0 commit 28ae888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hbase/hbase-sink/src/main/java/com/dtstack/flink/sql/sink/hbase/HbaseOutputFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public void writeRecord(Tuple2 tuple2) {
165165

166166
protected void dealInsert(Row record) {
167167
Put put = getPutByRow(record);
168-
if (put.isEmpty()) {
168+
if (put == null || put.isEmpty()) {
169169
return;
170170
}
171171

0 commit comments

Comments
 (0)