Skip to content

Commit

Permalink
Release 1.0.18+30
Browse files Browse the repository at this point in the history
Fix Issue #32: fix crash on empty reminder string exists in reminder list
  • Loading branch information
kmac committed Jun 22, 2021
1 parent 78b90cd commit 81f561c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.0.18
- Issue #32: Fix crash when reminder created with empty string

# 1.0.17
- Issue #32: Fix crash on earlier android versions caused by flutter_native_timezone

Expand Down
8 changes: 5 additions & 3 deletions lib/components/datastore.dart
Original file line number Diff line number Diff line change
Expand Up @@ -794,9 +794,11 @@ class Reminders {
}

String _stripFirstQuote(String s) {
String firstChar = s.substring(0, 1);
if (firstChar == '"' || firstChar == "'") {
return s.substring(1);
if (s != null && s.length > 0) {
String firstChar = s.substring(0, 1);
if (firstChar == '"' || firstChar == "'") {
return s.substring(1);
}
}
return s;
}
Expand Down
1 change: 1 addition & 0 deletions metadata/en-US/changelogs/30.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Issue #32: Fix crash when reminder created with empty string
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# This number is used only to determine whether one version is more recent than another,
# with higher numbers indicating more recent versions
# versionName: Customer-visible version string
version: 1.0.17+29
version: 1.0.18+30

environment:
sdk: ">=2.7.0 <3.0.0"
Expand Down

0 comments on commit 81f561c

Please sign in to comment.