more info on EA-34347

This commit is contained in:
peter
2012-03-21 12:03:31 +01:00
parent cb69dc3a62
commit 2fa78de9fb
@@ -890,8 +890,9 @@ public class LookupImpl extends LightweightHint implements LookupEx, Disposable
public boolean performGuardedChange(Runnable change, @Nullable final String debug) {
checkValid();
assert myLookupStartMarker.isValid();
assert !myChangeGuard;
assert myLookupStartMarker != null : "null start before";
assert myLookupStartMarker.isValid() : "invalid start";
assert !myChangeGuard : "already in change";
myChangeGuard = true;
final Document document = myEditor.getDocument();
@@ -911,7 +912,7 @@ public class LookupImpl extends LightweightHint implements LookupEx, Disposable
document.removeDocumentListener(spy);
myChangeGuard = false;
}
if (!myLookupStartMarker.isValid() || myDisposed) {
if (myDisposed || !myLookupStartMarker.isValid()) {
hide();
return false;
}