Skip to content

Commit

Permalink
[panic] Fix null object id panic (#2609)
Browse files Browse the repository at this point in the history
  • Loading branch information
vegetabledogdog authored Sep 10, 2024
1 parent a660167 commit ffda36e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/rooch-rpc-api/src/jsonrpc_types/move_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ impl FromStr for ObjectIDVecView {
fn from_str(s: &str) -> Result<Self, Self::Err> {
let ids = s
.split(',')
.filter(|s| !s.is_empty())
.map(ObjectID::from_str)
.collect::<Result<Vec<_>, _>>()?;
Ok(StrView(ids))
Expand Down

0 comments on commit ffda36e

Please sign in to comment.