mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-125070 Arranger: exception is thrown during rearrangement of empty xml
This commit is contained in:
@@ -74,7 +74,7 @@ public class XmlArrangementVisitor extends XmlElementVisitor {
|
||||
@Nullable String name,
|
||||
@Nullable String namespace,
|
||||
boolean canBeMatched) {
|
||||
if (!isWithinBounds(range)) {
|
||||
if (range.getStartOffset() == 0 && range.getEndOffset() == 0 || !isWithinBounds(range)) {
|
||||
return null;
|
||||
}
|
||||
final DefaultArrangementEntry current = getCurrent();
|
||||
|
||||
Reference in New Issue
Block a user