Chromium Code Reviews| Index: pkg/intl/lib/date_format_field.dart |
| =================================================================== |
| --- pkg/intl/lib/date_format_field.dart (revision 10991) |
| +++ pkg/intl/lib/date_format_field.dart (working copy) |
| @@ -203,6 +203,7 @@ |
| */ |
| void handleNumericField(_Stream input, Function setter, [int offset = 0]) { |
| var result = input.nextInteger(); |
| + if (result == null) throwFormatException(input); |
| setter(result + offset); |
| } |