don't fail in ShredImpl when querying injection over an uncommitted document (EA-123430 - assert: ShredImpl.<init>)

This commit is contained in:
peter
2018-06-25 18:59:10 +02:00
parent 8115a2e050
commit b45dbc949a
@@ -50,7 +50,7 @@ class ShredImpl implements PsiLanguageInjectionHost.Shred {
}
private void assertValid() {
Segment hostRange = getHostRangeMarker();
Segment hostRange = relevantRangeInHost.getPsiRange();
assert hostRange != null : "invalid host range: " + relevantRangeInHost;
PsiLanguageInjectionHost host = hostElementPointer.getElement();