You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Yury Gerzhedovich (Jira)" <ji...@apache.org> on 2022/10/31 08:38:00 UTC
[jira] [Resolved] (IGNITE-17970) NPE during check error code in SessionImpl
[ https://issues.apache.org/jira/browse/IGNITE-17970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yury Gerzhedovich resolved IGNITE-17970.
----------------------------------------
Resolution: Invalid
> NPE during check error code in SessionImpl
> ------------------------------------------
>
> Key: IGNITE-17970
> URL: https://issues.apache.org/jira/browse/IGNITE-17970
> Project: Ignite
> Issue Type: Bug
> Components: sql
> Reporter: Yury Gerzhedovich
> Priority: Major
> Labels: ignite-3
>
> At line 179 in SessionImpl class we compare Integer result of IgniteExceptionUtils.getIgniteErrorCode invocation with int, but result invocation could be null.
> Need to fix NPE for the case
> {code:java}
> if (IgniteExceptionUtils.getIgniteErrorCode(th) == SESSION_NOT_FOUND_ERR) {
> closeInternal();
> } {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)