diff --git a/Libraries/Inspector/InspectorUtils.js b/Libraries/Inspector/InspectorUtils.js index afc146aec..ef43c2d04 100644 --- a/Libraries/Inspector/InspectorUtils.js +++ b/Libraries/Inspector/InspectorUtils.js @@ -21,7 +21,7 @@ function traverseOwnerTreeUp(hierarchy, instance) { function findInstanceByNativeTag(nativeTag) { var instance = ReactNativeComponentTree.getInstanceFromNode(nativeTag); - if (typeof instance.tag === 'number') { + if (!instance || typeof instance.tag === 'number') { // TODO(sema): We've disabled the inspector when using Fiber. Fix #15953531 return null; }