Skip to content

Commit

Permalink
Subscription: The usage of bitmap in SubscriptionSessionDataSet may c…
Browse files Browse the repository at this point in the history
…ause npe (#14124) (#14218)
  • Loading branch information
shuwenwei authored Nov 28, 2024
1 parent 36d93f1 commit 57b1309
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ public RowRecord next() {

for (int columnIndex = 0; columnIndex < columnSize; ++columnIndex) {
final Field field;
if (tablet.bitMaps[columnIndex].isMarked(rowIndex)) {
if (tablet.bitMaps != null
&& tablet.bitMaps[columnIndex] != null
&& tablet.bitMaps[columnIndex].isMarked(rowIndex)) {
field = new Field(null);
} else {
final TSDataType dataType = tablet.getSchemas().get(columnIndex).getType();
Expand Down

0 comments on commit 57b1309

Please sign in to comment.