diff --git a/monai/transforms/io/array.py b/monai/transforms/io/array.py index cdcc4da80d..b8f8cc6ee0 100644 --- a/monai/transforms/io/array.py +++ b/monai/transforms/io/array.py @@ -440,7 +440,7 @@ def __init__( self.write_kwargs = {"verbose": print_log} self._data_index = 0 self.savepath_in_metadict = savepath_in_metadict - if mapping_json_path: + if mapping_json_path is not None: self.mapping_json_path = Path(mapping_json_path) self.savepath_in_metadict = True else: