Skip to content

Commit

Permalink
fix: use storage topic if topic is not available on connection to pre…
Browse files Browse the repository at this point in the history
…vent errors (header topic is missing on ros noetic rosbags)
  • Loading branch information
RomainNotilo committed May 27, 2024
1 parent a0d5543 commit 9d51c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/record_types/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl<'a> RecordGen<'a> for Connection<'a> {
}
}

let topic = topic.ok_or(Error::InvalidHeader)?;
let topic = topic.unwrap_or(storage_topic);
let tp = tp.ok_or(Error::InvalidHeader)?;
let md5sum = md5sum.ok_or(Error::InvalidHeader)?;
let message_definition = message_definition.ok_or(Error::InvalidHeader)?;
Expand Down

0 comments on commit 9d51c16

Please sign in to comment.