xccui commented on code in PR #27200:
URL: https://github.com/apache/flink/pull/27200#discussion_r2498883215
##########
flink-connectors/flink-connector-base/src/main/java/org/apache/flink/connector/base/source/hybrid/HybridSourceReader.java:
##########
@@ -252,6 +252,8 @@ private void setCurrentReader(int index) {
@Override
public void pauseOrResumeSplits(
Collection<String> splitsToPause, Collection<String>
splitsToResume) {
- currentReader.pauseOrResumeSplits(splitsToPause, splitsToResume);
+ if (currentReader != null) {
Review Comment:
It's normal for the currentReader to be null. I'm just not sure if this
method will be invoked when it happens. So just in case.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]