mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Fixed an NPE.
This commit is contained in:
parent
2724fbbe45
commit
861c9a0a29
1 changed files with 1 additions and 1 deletions
|
@ -1021,7 +1021,7 @@ public class PDOM extends PlatformObject implements IPDOM {
|
||||||
long start= sDEBUG_LOCKS ? System.currentTimeMillis() : 0;
|
long start= sDEBUG_LOCKS ? System.currentTimeMillis() : 0;
|
||||||
while (lockCount > giveupReadLocks || waitingReaders > 0) {
|
while (lockCount > giveupReadLocks || waitingReaders > 0) {
|
||||||
mutex.wait(CANCELLATION_CHECK_INTERVAL);
|
mutex.wait(CANCELLATION_CHECK_INTERVAL);
|
||||||
if (monitor.isCanceled()) {
|
if (monitor != null && monitor.isCanceled()) {
|
||||||
throw new OperationCanceledException();
|
throw new OperationCanceledException();
|
||||||
}
|
}
|
||||||
if (sDEBUG_LOCKS) {
|
if (sDEBUG_LOCKS) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue