Skip to content

Commit

Permalink
https://github.com/javers/javers/issues/1030
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszwalacik committed Oct 23, 2020
1 parent ed5f018 commit c47f018
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -16,7 +16,7 @@
public class Lists {

public static List wrapNull(Object list) {
if (list == null || list == MissingProperty.INSTANCE) {
if (list == null || list == MissingProperty.INSTANCE || !(list instanceof List)) {
return Collections.emptyList();
}
return (List)list;
Expand Down
Expand Up @@ -13,7 +13,7 @@
public class Maps {

public static Map wrapNull(Object map){
if (map == null || map == MissingProperty.INSTANCE){
if (map == null || map == MissingProperty.INSTANCE || !(map instanceof Map)){
return Collections.emptyMap();
}
return (Map)map;
Expand Down
Expand Up @@ -21,7 +21,7 @@ private Sets() {


public static Set wrapNull(Object set) {
if (set == null || set == MissingProperty.INSTANCE) {
if (set == null || set == MissingProperty.INSTANCE || !(set instanceof Set)) {
return Collections.emptySet();
}
return (Set) set;
Expand Down

0 comments on commit c47f018

Please sign in to comment.