Disallow P2P interface -> dual interface transform (#1702)

This commit is contained in:
Riever authored and GitHub committed 2026-10-15 12:44:33 +02:00
1 parent 70bec29ddb
commit 798e465f9e
1 file changed
+1 -1
@@ -43,6 +43,6 @@ public abstract class PartP2PTunnelStatic<T extends PartP2PTunnelStatic> extends
@Override
protected boolean checkIfCompatibleType(final IPart testPart) {
return this.getClass().isInstance(testPart);
return testPart != null && testPart.getClass() == this.getClass();
}
}