1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Fixed an NPE.

This commit is contained in:
Sergey Prigogin 2014-04-22 16:12:35 -07:00
parent 2724fbbe45
commit 861c9a0a29

View file

@ -1021,7 +1021,7 @@ public class PDOM extends PlatformObject implements IPDOM {
long start= sDEBUG_LOCKS ? System.currentTimeMillis() : 0;
while (lockCount > giveupReadLocks || waitingReaders > 0) {
mutex.wait(CANCELLATION_CHECK_INTERVAL);
if (monitor.isCanceled()) {
if (monitor != null && monitor.isCanceled()) {
throw new OperationCanceledException();
}
if (sDEBUG_LOCKS) {