| 1600 | |
| 1601 | void ValdiAndroid::NativeBridge::notifyApplyAttributeFailed(fbjni::alias_ref<fbjni::JClass> clazz, // NOLINT |
| 1602 | jlong viewNodeHandle, |
| 1603 | jint attributeId, |
| 1604 | jstring errorMessage) { |
| 1605 | auto viewNode = getViewNode(viewNodeHandle); |
| 1606 | if (viewNode == nullptr) { |
| 1607 | return; |
| 1608 | } |
| 1609 | |
| 1610 | // Failures can be reported asynchronously (e.g. font load completions posted to the main |
| 1611 | // thread). By then the node may be detached and its tree/logger already destroyed, so |
| 1612 | // logging through the node would dereference freed memory. |
| 1613 | auto* viewNodeTree = viewNode->getViewNodeTree(); |
| 1614 | if (viewNodeTree == nullptr) { |
nothing calls this directly
no test coverage detected