MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getCurrentContext

Method getCurrentContext

valdi/src/valdi/android/NativeBridge.cpp:1602–1611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1600
1601void 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) {

Callers

nothing calls this directly

Calls 3

fromValdiContextUserDataFunction · 0.85
getUserDataMethod · 0.80
releaseObjectMethod · 0.65

Tested by

no test coverage detected