diff --git a/crates/rustic_core/src/backend/rest.rs b/crates/rustic_core/src/backend/rest.rs index f5ffb12..a947e65 100644 --- a/crates/rustic_core/src/backend/rest.rs +++ b/crates/rustic_core/src/backend/rest.rs @@ -191,7 +191,8 @@ impl ReadBackend for RestBackend { .header("Accept", "application/vnd.x.restic.rest.v2") .send()? .check_error()? - .json::>()?; + .json::>>()? // use Option to be handle null json value + .unwrap_or_default(); Ok(list .into_iter() .filter_map(|i| match Id::from_hex(&i.name) {