[
https://issues.apache.org/jira/browse/IGNITE-22163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17844231#comment-17844231
]
Kirill Tkalenko commented on IGNITE-22163:
------------------------------------------
Looks good.
> Fix potential NPE in IndexManager
> ----------------------------------
>
> Key: IGNITE-22163
> URL: https://issues.apache.org/jira/browse/IGNITE-22163
> Project: Ignite
> Issue Type: Bug
> Reporter: Mirza Aliev
> Assignee: Mirza Aliev
> Priority: Major
> Labels: ignite-3
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> {{org.apache.ignite.internal.index.IndexManager#getMvTableStorage}} could
> produce NPE
> if {{tableAsync}} is not ready
> {code:java}
> CompletableFuture<MvTableStorage> getMvTableStorage(long causalityToken,
> int tableId) {
> return tableManager.tableAsync(causalityToken,
> tableId).thenApply(table -> table.internalTable().storage());
> }
> {code}
> Need to fix this
--
This message was sent by Atlassian Jira
(v8.20.10#820010)