Skip to content

Commit 5f649f3

Browse files
committed
merge tiny fix to prevent NPE apache#2955
1 parent 1ce108f commit 5f649f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fluss-flink/fluss-flink-common/src/test/java/org/apache/fluss/flink/sink/FlussSinkITCase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,12 @@ public void testPartialUpdateWithTwoWriters() throws Exception {
383383
for (ScanRecord record : scanRecords.records(bucket)) {
384384
InternalRow row = record.getRow();
385385
String address = row.getString(3) != null ? row.getString(3).toString() : null;
386+
int amount = row.isNullAt(2) ? -1 : row.getInt(2);
386387
TestOrder order =
387388
new TestOrder(
388389
row.getLong(0),
389390
row.getLong(1),
390-
row.getInt(2),
391+
amount,
391392
address,
392393
toFlinkRowKind(record.getChangeType()));
393394
actual.add(order);

0 commit comments

Comments
 (0)