Closed tatatodd closed 4 years ago
Thanks for the PR!
I looked into possible reasons why this might happen and ended up doing #16. Could you check if that eliminates your panic?
If not, could you create a reproducible case for us?
I want to avoid silently handling unexpected state, but I agree that we should defend against the AWS SDK behaving unexpectedly. Instead of transforming values silently, let's propagate errors. Users won't be surprised by surprisingly wrong stats, and we'll hopefully hear about unhandled SDK behavior.
What do you think?
I think https://github.com/grailbio/base/pull/17 should cover this. I think the other call to newInfo
is defunct (see https://github.com/grailbio/base/pull/16#issuecomment-622092442), so we'll ultimately just remove that case.
@jcharum Yup I agree #17 should cover this; I'll close this out. Thanks!
Fixes crashes like the following. I don't know exactly what conditions cause the AWS response to have nil values, but this fixes trivial nil pointer dereferences and seems better regardless.