[
https://issues.apache.org/jira/browse/IGNITE-3515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15387556#comment-15387556
]
Krome Plasma edited comment on IGNITE-3515 at 7/21/16 11:56 AM:
----------------------------------------------------------------
[~dmagda] it's not possible for me to make a test for this as Ignite wraps
exception and cannot catch it in the test and fail the test. I was also
discussing this with [~vladisav].
In IgniteKernel:
catch (Throwable e) {
errOnStop = true;
U.error(log, "Failed to pre-stop processor: " + comp, e);
if (e instanceof Error)
throw e;
}
As you can see exception is not rethrown in case of NPE.
was (Author: kromulan):
[~dmagda] it's not possible for me to make a test for this as Ignite wraps
exception and cannot catch it in the test and fail the test. I was also
discussing this with [~vladisav].
> NullPointerException when stopping IgniteSemaphore and no method has been
> called previously to initialize semaphore with initializeSemaphore().
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: IGNITE-3515
> URL: https://issues.apache.org/jira/browse/IGNITE-3515
> Project: Ignite
> Issue Type: Bug
> Components: data structures
> Affects Versions: 1.6
> Reporter: Krome Plasma
> Assignee: Krome Plasma
> Fix For: 1.7
>
>
> IgniteSemaphore stop() method does not check if internal synchronization
> object 'sync' is null hence null pointer exception is thrown.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)