diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/core/collect/ReferenceHashStrategy.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/core/collect/ReferenceHashStrategy.kt index d6b6fdc3c..eb3e61200 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/core/collect/ReferenceHashStrategy.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/core/collect/ReferenceHashStrategy.kt @@ -9,7 +9,7 @@ object ReferenceHashStrategy : Hash.Strategy { if (a == null || b == null) return false if (a is Reference<*>) { - if (b is Reference<*>) return a.get() == b.get() + if (b is Reference<*>) return a.get() != null && a.get() == b.get() return a.get() == b } else if (b is Reference<*>) { return b.get() == a