Re: NullPointerException when stopping IgniteSemaphore

2016-07-21 Thread Vladisav Jelisavcic
Sure, I'll do the review.

It is lazy initialized, same as latch and other datastructures.

Regards,
Vladisav

On Thu, Jul 21, 2016 at 10:24 AM, Yakov Zhdanov  wrote:

> Vladislav, can you please review and merge to master the fix and test case
> suggested by Krome?
>
> Vlad, btw, why don't we init semaphore during construction time?
>
> https://issues.apache.org/jira/browse/IGNITE-3515
>
> Thanks!
>
> --Yakov
>


NullPointerException when stopping IgniteSemaphore

2016-07-21 Thread Yakov Zhdanov
Vladislav, can you please review and merge to master the fix and test case
suggested by Krome?

Vlad, btw, why don't we init semaphore during construction time?

https://issues.apache.org/jira/browse/IGNITE-3515

Thanks!

--Yakov


[jira] [Created] (IGNITE-3515) NullPointerException when stopping IgniteSemaphore and no method has been called previously to initialize semaphore with initializeSemaphore().

2016-07-20 Thread Krome Plasma (JIRA)
Krome Plasma created IGNITE-3515:


 Summary: 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
 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)