Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make metadata access safer at runtime
The `!` operator is a type assertion that the attribute is not null, but does nothing at runtime to ensure this is the case. I haven't yet found reproduction steps for this failure, but I encountered a case where accessing `model!.sharedModel` threw an error. This commit adds optional chaining operators, which do provide protection at runtime.
- Loading branch information