Skip to content

Commit

Permalink
my-files: Prevent created date related bug
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Jun 24, 2017
1 parent 15e08e0 commit 1c56aeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/utils/JodaDateUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public static String getDateString(Date date, String format) {
format = "yyyy-MM-dd h:mm:ss a";
}
SimpleDateFormat sdf = new SimpleDateFormat(format);
if (date == null) {
return "";
}
return sdf.format(date);
}
public static Date today() {
Expand Down

0 comments on commit 1c56aeb

Please sign in to comment.