fix DomBasicsTest

This commit is contained in:
peter
2019-01-31 22:45:20 +01:00
parent d33e3154f3
commit b036fa2e68

View File

@@ -207,7 +207,7 @@ public abstract class DomInvocationHandler<T extends AbstractDomChildDescription
@Override
public <T extends DomElement> T createStableCopy() {
XmlTag tag = getXmlTag();
if (tag != null) {
if (tag != null && tag.isPhysical()) {
DomInvocationHandler existing = myManager.getDomHandler(tag);
if (!equals(existing)) {
throw new IllegalStateException(this + " != " + existing);