Skip to content

Commit

Permalink
fix type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
rdhabalia committed Oct 10, 2024
1 parent cd26340 commit d0b64de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ public CompletableFuture<Boolean> hasSchema() {
.exceptionally(e -> {
Throwable ex = e.getCause();
if (brokerService.pulsar().getConfig().isSchemaLedgerForceRecovery()
&& !((SchemaException) ex).isRecoverable()) {
&& (ex instanceof SchemaException && !((SchemaException) ex).isRecoverable())) {
return false;
}
throw ex instanceof CompletionException ? (CompletionException) ex : new CompletionException(ex);
Expand Down

0 comments on commit d0b64de

Please sign in to comment.