Skip to content

Commit 56fe593

Browse files
committed
[hotfix][client] Fix the NPE in LookupSender caused by the method not exiting when getting a null gateway
1 parent b0a4124 commit 56fe593

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fluss-client/src/main/java/org/apache/fluss/client/lookup/LookupSender.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ private void sendLookupRequest(int destination, List<AbstractLookupQuery<?>> loo
207207
+ " is not found in metadata cache."),
208208
destination,
209209
lookupsByBucket));
210+
return;
210211
}
211212

212213
lookupByTableId.forEach(
@@ -244,6 +245,7 @@ private void sendPrefixLookupRequest(
244245
+ " is not found in metadata cache."),
245246
destination,
246247
lookupsByBucket));
248+
return;
247249
}
248250

249251
lookupByTableId.forEach(

0 commit comments

Comments
 (0)