Alessio Quaglino
5d51b4cd5f
Check that element is a nullptr before casting.
...
The bug was caused by the fact that the `mjs_as*` functions would return a pointer to a `mjC*` object, even if the input `mjsElement` pointer was null. This would cause a segfault.
PiperOrigin-RevId: 651802736
Change-Id: Ibec00d269a4befadff8a68e0513fd381c7e38a2a
2024-07-12 09:46:16 -07:00
..
2023-12-12 08:59:46 -08:00
2024-07-04 09:45:22 -07:00
2024-01-05 06:50:55 -08:00
2023-12-12 08:59:46 -08:00
2024-06-04 15:27:47 +01:00
2024-03-19 14:53:18 -07:00
2024-07-10 09:26:54 -07:00
2024-07-01 12:05:50 -07:00
2024-07-11 03:54:44 -07:00
2024-07-01 12:05:50 -07:00
2024-07-04 09:22:23 -07:00
2024-06-27 05:06:01 -07:00
2024-07-02 08:50:23 -07:00
2023-10-31 09:16:40 -07:00
2023-10-31 09:16:40 -07:00
2024-07-12 06:10:37 -07:00
2024-05-06 15:36:01 -07:00
2024-05-07 07:16:30 -07:00
2023-10-13 16:13:24 -07:00
2023-10-13 16:13:24 -07:00
2024-07-01 12:05:50 -07:00
2024-07-02 08:01:40 -07:00
2023-12-12 08:59:46 -08:00
2024-04-17 23:38:06 -07:00
2024-01-22 07:01:53 -08:00
2024-01-22 07:01:53 -08:00
2024-01-22 07:01:53 -08:00
2024-06-17 06:12:22 -07:00
2024-07-12 09:46:16 -07:00
2024-07-04 09:32:33 -07:00
2024-07-04 09:22:23 -07:00
2024-07-02 08:01:40 -07:00
2024-06-17 06:12:22 -07:00