diff --git a/cunumeric/deferred.py b/cunumeric/deferred.py index 5e155d466..9d9fa963d 100644 --- a/cunumeric/deferred.py +++ b/cunumeric/deferred.py @@ -1106,7 +1106,11 @@ def set_item(self, key: Any, rhs: Any) -> None: # NOTE: Neither Store nor Storage have an __eq__, so we can # only check that the underlying RegionField/Future corresponds # to the same Legion handle. - if view.base.storage.same_handle(rhs.base.storage): + if ( + view.base.has_storage + and rhs.base.has_storage + and view.base.storage.same_handle(rhs.base.storage) + ): return view.copy(rhs, deep=False)