Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
4e2c77d4
Unverified
Commit
4e2c77d4
authored
Dec 04, 2021
by
Yegor
Committed by
GitHub
Dec 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FlutterDriver] minor nullability fixes (#94584)
parent
5ddc00cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
extension.dart
packages/flutter_driver/lib/src/extension/extension.dart
+6
-5
No files found.
packages/flutter_driver/lib/src/extension/extension.dart
View file @
4e2c77d4
...
...
@@ -366,11 +366,12 @@ class FlutterDriverExtension with DeserializeFinderFactory, CreateFinderFactory,
final
Command
command
=
deserializeCommand
(
params
,
this
);
assert
(
WidgetsBinding
.
instance
!.
isRootWidgetAttached
||
!
command
.
requiresRootWidgetAttached
,
'No root widget is attached; have you remembered to call runApp()?'
);
Future
<
Result
?>
responseFuture
=
handleCommand
(
command
,
_prober
,
this
);
if
(
command
.
timeout
!=
null
)
responseFuture
=
responseFuture
.
timeout
(
command
.
timeout
??
Duration
.
zero
);
final
Result
?
response
=
await
responseFuture
;
return
_makeResponse
(
response
?.
toJson
());
Future
<
Result
>
responseFuture
=
handleCommand
(
command
,
_prober
,
this
);
if
(
command
.
timeout
!=
null
)
{
responseFuture
=
responseFuture
.
timeout
(
command
.
timeout
!);
}
final
Result
response
=
await
responseFuture
;
return
_makeResponse
(
response
.
toJson
());
}
on
TimeoutException
catch
(
error
,
stackTrace
)
{
final
String
message
=
'Timeout while executing
$commandKind
:
$error
\n
$stackTrace
'
;
_log
(
message
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment