diff --git a/android/app/build.gradle b/android/app/build.gradle
index 9618ce3ee..c53ca49f0 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -29,8 +29,8 @@ android {
applicationId "com.invoiceninja.flutter"
minSdkVersion 18
targetSdkVersion 27
- versionCode 28
- versionName "0.1.28"
+ versionCode 29
+ versionName "0.1.29"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
diff --git a/ios/Runner/Info.plist.example b/ios/Runner/Info.plist.example
index 865af7ae1..60baed817 100644
--- a/ios/Runner/Info.plist.example
+++ b/ios/Runner/Info.plist.example
@@ -17,11 +17,11 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 0.1.28
+ 0.1.29
CFBundleSignature
????
CFBundleVersion
- 28
+ 29
LSRequiresIPhoneOS
UILaunchStoryboardName
diff --git a/lib/constants.dart b/lib/constants.dart
index 5b3e550b4..1f73cb71c 100644
--- a/lib/constants.dart
+++ b/lib/constants.dart
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
// This version must be updated in tandem with the pubspec version.
-const String kAppVersion = '0.1.28';
+const String kAppVersion = '0.1.29';
const String kAppUrl = 'https://app.invoiceninja.com';
const String kAppleStoreUrl =
diff --git a/lib/data/models/task_model.dart b/lib/data/models/task_model.dart
index d1be63bd3..5038e4a63 100644
--- a/lib/data/models/task_model.dart
+++ b/lib/data/models/task_model.dart
@@ -209,6 +209,9 @@ abstract class TaskEntity extends Object
bool isBetween(String startDate, String endDate) {
final times = taskTimes;
+ if (times.isEmpty) {
+ return false;
+ }
final firstEndDate = times.first.endDate ?? DateTime.now();
final lastEndDate = times.first.endDate ?? DateTime.now();
return DateTime.parse(startDate).compareTo(firstEndDate.toLocal()) <= 0 &&
diff --git a/pubspec.yaml b/pubspec.yaml
index 3813e5f67..b8f2bc301 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,6 +1,6 @@
name: invoiceninja_flutter
description: Mobile app for Invoice Ninja
-version: 0.1.28
+version: 0.1.29
author: Hillel Coren
homepage: https://www.invoiceninja.com
documentation: http://docs.invoiceninja.com