This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue 11594: Check if the monitor is null in _d_monitorenter
In case of
```
synchronized (null)
{
// ...
}
```
runtime will try to access __monitor field on a null,
without checking if it's a null and it will segfault,
leaving programmer clueless.
https://issues.dlang.org/show_bug.cgi?id=11594- Loading branch information