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
7c4aef60
Commit
7c4aef60
authored
Mar 05, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2422 from abarth/init_bundle
Make _initRootBundle more robust
parents
9f142710
eea4bae6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
+5
-12
asset_bundle.dart
packages/flutter/lib/src/services/asset_bundle.dart
+4
-7
print.dart
packages/flutter/lib/src/services/print.dart
+1
-5
No files found.
packages/flutter/lib/src/services/asset_bundle.dart
View file @
7c4aef60
...
...
@@ -96,14 +96,11 @@ class MojoAssetBundle extends CachingAssetBundle {
}
AssetBundle
_initRootBundle
(
)
{
try
{
AssetBundleProxy
bundle
=
new
AssetBundleProxy
.
fromHandle
(
new
core
.
MojoHandle
(
ui
.
takeRootBundleHandle
())
);
return
new
MojoAssetBundle
(
bundle
);
}
catch
(
e
)
{
int
h
=
ui
.
takeRootBundleHandle
();
if
(
h
==
core
.
MojoHandle
.
INVALID
)
return
null
;
}
core
.
MojoHandle
handle
=
new
core
.
MojoHandle
(
h
);
return
new
MojoAssetBundle
(
new
AssetBundleProxy
.
fromHandle
(
handle
));
}
final
AssetBundle
rootBundle
=
_initRootBundle
();
packages/flutter/lib/src/services/print.dart
View file @
7c4aef60
...
...
@@ -46,9 +46,5 @@ void _debugPrintTask() {
}
void
debugPrintStack
(
)
{
try
{
throw
new
Exception
();
}
catch
(
e
,
stack
)
{
debugPrint
(
stack
.
toString
());
}
debugPrint
(
StackTrace
.
current
.
toString
());
}
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