diff --git a/React/Base/RCTBundleURLProvider.mm b/React/Base/RCTBundleURLProvider.mm index 0a487289eb0..6781f034ebb 100644 --- a/React/Base/RCTBundleURLProvider.mm +++ b/React/Base/RCTBundleURLProvider.mm @@ -126,7 +126,7 @@ static NSURL *serverRootWithHostPort(NSString *hostPort) { NSString *location = [self jsLocation]; #if RCT_DEV_MENU - if (![RCTBundleURLProvider isPackagerRunning:location]) { + if ([location length] && ![RCTBundleURLProvider isPackagerRunning:location]) { location = nil; } #endif