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
aa66a772
Commit
aa66a772
authored
Feb 10, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix an NPE when the flutter.yaml file is missing
parent
4e4887a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
apk.dart
packages/flutter_tools/lib/src/commands/apk.dart
+5
-3
services.dart
packages/flutter_tools/lib/src/services.dart
+1
-1
No files found.
packages/flutter_tools/lib/src/commands/apk.dart
View file @
aa66a772
...
...
@@ -242,9 +242,11 @@ Future<_ApkComponents> _findApkComponents(
components
.
debugKeystore
=
new
File
(
artifactPaths
[
3
]);
components
.
resources
=
new
Directory
(
resources
);
await
parseServiceConfigs
(
components
.
services
,
jars:
components
.
jars
,
androidSdk:
components
.
androidSdk
.
path
);
await
parseServiceConfigs
(
components
.
services
,
jars:
components
.
jars
,
androidSdk:
components
.
androidSdk
.
path
);
if
(!
components
.
resources
.
existsSync
())
{
// TODO(eseidel): This level should be higher when path is manually set.
...
...
packages/flutter_tools/lib/src/services.dart
View file @
aa66a772
...
...
@@ -29,7 +29,7 @@ Future parseServiceConfigs(
return
;
dynamic
manifest
=
_loadYamlFile
(
_kFlutterManifestPath
);
if
(
manifest
[
'services'
]
==
null
)
if
(
manifest
==
null
||
manifest
[
'services'
]
==
null
)
return
;
for
(
String
service
in
manifest
[
'services'
])
{
...
...
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