fix adding empty DataContainer to an empty DataContainer
This commit is contained in:
1 parent
ae84ec8755
commit
2195961994
1 file changed
+2
-1
@@ -250,7 +250,8 @@ public class MemoryDataView implements DataView {
|
||||
}
|
||||
|
||||
final Object serialized = DataSerializer.serialize(this.safetyMode(), value);
|
||||
checkArgument(!this.equals(serialized), "Cannot insert self-referencing DataView!");
|
||||
|
||||
checkArgument(this.isEmpty() || !this.equals(serialized), "Cannot insert self-referencing DataView!");
|
||||
if (serialized instanceof DataView) {
|
||||
// always have to copy a data view to avoid overwriting existing
|
||||
// views and to set the interior path correctly.
|
||||
|
||||
Reference in new issue
Block a user