mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't fail in ShredImpl when querying injection over an uncommitted document (EA-123430 - assert: ShredImpl.<init>)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user