Skip to content

Commit

Permalink
Extra validity check in FeedStatus().
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonHD committed May 27, 2024
1 parent fbd8bb6 commit d0daaee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions javasrc/org/hd/d/statsHouse/feedHits/data/FeedStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public record FeedStatus(int hits, int bytes, String colTypes, List<Integer> col
Objects.nonNull(colTypes);
Objects.nonNull(cols);
Objects.nonNull(index);
if(cols.size() != colTypes.split(":").length) { throw new IllegalArgumentException("colTypes element count must match cols"); }
}

/**Charset for feed status data (ASCII 7-bit). */
Expand Down

0 comments on commit d0daaee

Please sign in to comment.