Skip to content

Commit

Permalink
Fix crash due to null brew date
Browse files Browse the repository at this point in the history
  • Loading branch information
caseydavenport committed Apr 18, 2016
1 parent c309483 commit 07c84f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<manifest
package="com.biermacht.brews"
xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="28"
android:versionName="1.4.1">
android:versionCode="29"
android:versionName="1.4.2">

<uses-sdk
android:minSdkVersion="15"
Expand Down
4 changes: 4 additions & 0 deletions src/com/biermacht/brews/recipe/Recipe.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public Recipe(String s) {
this.secondaryTemp = 21;
this.tertiaryTemp = 21;
this.bottleAge = 14;
this.brewDate = "";

// Custom Fields ==================================================
// ================================================================
Expand Down Expand Up @@ -1014,6 +1015,9 @@ public void setCarbonation(double d) {
}

public String getBrewDate() {
if (this.brewDate == null) {
this.brewDate = "";
}
return this.brewDate;
}

Expand Down

0 comments on commit 07c84f4

Please sign in to comment.