Skip to content

Program panics when there are no tables #18

Description

@collinmurd

I'm running DynamoDB in a local container. When running ddv before DynamoDB contains any tables, the program panics.

thread 'main' panicked at src/view/table_list.rs:357:52:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0: __rustc::rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic
   3: core::option::unwrap_failed
   4: ddv::view::table_list::TableListView::load_table_description
   5: ddv::app::App::run
   6: ddv::main::{{closure}}
   7: ddv::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

NOTE I don't have access to an AWS account with no DynamoDB tables. So it's possible this is only an issue with the distributable version of DynamoDB

Version: v0.2.0

Reproduce

Run DynamoDB locally

docker run -p 8000:8000 amazon/dynamodb-local

Create an AWS profile pointing at local dynamo

[profile local]
aws_access_key_id=x
aws_secret_access_key=x
region=x
endpoint_url=http://localhost:8000

Run ddv with that profile

RUST_BACKTRACE=1 ddv --profile local

Activity

  1. lusingander commented on Dec 27, 2025

    @lusingander
    Owner

    Thank you for reporting this.
    As you said, it doesn't seem to be a problem in general, but it would be better to fix it.

  2. collinmurd commented on Dec 27, 2025

    @collinmurd
    ContributorAuthor

    It looks like the panic is actually fixed in the current master branch. I opened #19 to display a warning to the user if there are no tables.

  3. linked a pull request that will close this issueWarn if no tables present #19on Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions