Check for missing fields when parsing values/instructions (#1509)
Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/1509 Even if the type field is present and valid, the `<field>_as_<type>()` call can return null. Check all `_as_` return values in method.cpp during load/init. Reviewed By: kimishpatel Differential Revision: D52451747 fbshipit-source-id: 136882982a72009edb531e8e6c5151382144cfd5
D
Dave Bort committed
057aad77751344aab86696e5894e9c0bb965a79d
Parent: 4d7e25b
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 1/12/2024, 10:57:01 PM