Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on empty DownloadUrls in the config.yaml #161

Closed
oldshensheep opened this issue May 1, 2023 · 1 comment
Closed

Crash on empty DownloadUrls in the config.yaml #161

oldshensheep opened this issue May 1, 2023 · 1 comment

Comments

@oldshensheep
Copy link
Contributor

After upgrade to 0.7.2, nali will crash if previous config.yaml not exits download-urls in the section of qqwry.
E.g.

    - name: qqwry
      name-alias:
        - chunzhen
      format: qqwry
      file: qqwry.dat
      languages:
        - zh-CN
      types:
        - IPv4
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/zu1k/nali/internal/migration.migration2v7()
        github.com/zu1k/nali/internal/migration/v7.go:32 +0x3a9
github.com/zu1k/nali/internal/migration.init.0()
        github.com/zu1k/nali/internal/migration/mirgration.go:5 +0x1c
zu1k pushed a commit that referenced this issue May 1, 2023
* fix crash #161

* fix migration qqwry
@zu1k
Copy link
Owner

zu1k commented May 1, 2023

Thanks

@zu1k zu1k closed this as completed May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants