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

This should be cf.ID == nil and not cf.ID != nil #195

Closed
gdey opened this issue Nov 25, 2017 · 1 comment
Closed

This should be cf.ID == nil and not cf.ID != nil #195

gdey opened this issue Nov 25, 2017 · 1 comment
Assignees

Comments

@gdey
Copy link
Member

gdey commented Nov 25, 2017

https://github.com/terranodo/tegola/blob/30dac10f813543493ab8a0479ec7a806ddd86f1f/mvt/layer.go#L154-L158

This will cause a runtime panic because we are guaranteeing that cf.ID is going to be nil, before dereferencing it. It's obvious that this is a typo, and should have been cf.ID == nil.

@gdey gdey self-assigned this Nov 25, 2017
gdey added a commit that referenced this issue Dec 2, 2017
There was a small typo that could cause a nil derefrence.
gdey added a commit that referenced this issue Dec 3, 2017
Added test case for Issue #195.
Without the fix for #195 this will fail via a panic.
gdey added a commit that referenced this issue Dec 3, 2017
There was a small typo that could cause a nil derefrence.
@gdey gdey mentioned this issue Dec 3, 2017
JivanAmara added a commit that referenced this issue Dec 6, 2017
gdey added a commit that referenced this issue Dec 6, 2017
Added entry for fixing #195
@gdey
Copy link
Member Author

gdey commented Dec 6, 2017

The issue has been merged into v0.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant