EZ: Fix debug mode NPE in non-Fabric

Summary:
Fixes a NPE in debug mode. This will only impact developers who have explicitly turned this debug flag on, so it's a very low-pri fix.

Changelog: [Internal]

Reviewed By: makovkastar

Differential Revision: D24410825

fbshipit-source-id: 08c8a0c6d0e0fb7c132725ad6af9460b91a7edf3
This commit is contained in:
Joshua Gross 2020-10-20 05:17:48 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 9c1f0c697d
Коммит ca4bac5534
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -262,7 +262,12 @@ public class NativeViewHierarchyManager {
String className,
@Nullable ReactStylesDiffMap initialProps) {
if (DEBUG_MODE) {
FLog.d(TAG, "createView[%d]: %s %s", tag, className, initialProps.toString());
FLog.d(
TAG,
"createView[%d]: %s %s",
tag,
className,
(initialProps != null ? initialProps.toString() : "<null>"));
}
UiThreadUtil.assertOnUiThread();
SystraceMessage.beginSection(