#2421 - Change database.diff() to return empty map rather than null with null bean argument

This commit is contained in:
Rob Bygrave committed 2021-10-19 11:58:29 +13:00
1 parent a61c73c62a
commit 5a4924b6cb
2 files changed
+14 -17

No files matched your search

@@ -566,7 +566,7 @@ public final class DefaultServer implements SpiServer, SpiEbeanServer {
@Override
public Map<String, ValuePair> diff(Object a, Object b) {
if (a == null) {
return null;
return Collections.emptyMap();
}
BeanDescriptor<?> desc = descriptor(a.getClass());
return DiffHelp.diff(a, b, desc);