Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: pkg/observe/lib/src/path_observer.dart

Issue 23479002: Suppressing first-chance exception in path_observer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/observe/lib/src/path_observer.dart
diff --git a/pkg/observe/lib/src/path_observer.dart b/pkg/observe/lib/src/path_observer.dart
index f4f9bcdef77c05d93a6c03322b8d3e483627a099..6e31b558f25235c22a4f31318d2596595073e687 100644
--- a/pkg/observe/lib/src/path_observer.dart
+++ b/pkg/observe/lib/src/path_observer.dart
@@ -45,7 +45,7 @@ class PathObserver extends ChangeNotifierBase {
if (_isValid) {
for (var segment in path.trim().split('.')) {
if (segment == '') continue;
- var index = int.parse(segment, onError: (_) => null);
+ var index = int.parse(segment, radix: 10, onError: (_) => null);
_segments.add(index != null ? index : new Symbol(segment));
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698