From acf3f3d839252955d9daf830f2aab25345831a0a Mon Sep 17 00:00:00 2001 From: Alexander Aprelev Date: Tue, 10 Jul 2018 17:58:36 -0700 Subject: [PATCH] Fix 'are there any views available' check (#19231) --- packages/flutter_tools/lib/src/resident_runner.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter_tools/lib/src/resident_runner.dart b/packages/flutter_tools/lib/src/resident_runner.dart index 3720c59abdad6..516ebdf471182 100644 --- a/packages/flutter_tools/lib/src/resident_runner.dart +++ b/packages/flutter_tools/lib/src/resident_runner.dart @@ -636,7 +636,7 @@ abstract class ResidentRunner { compileExpression: compileExpression); await device.getVMs(); await device.waitForViews(); - if (device.views == null) + if (device.views.isEmpty) printStatus('No Flutter views available on ${device.device.name}'); else viewFound = true;