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
4363cf8a
Commit
4363cf8a
authored
Feb 10, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1767 from devoncarew/fix_npe
fix an NPE when the flutter.yaml file is missing
parents
4e4887a9
aa66a772
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 @
4363cf8a
...
...
@@ -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 @
4363cf8a
...
...
@@ -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