my-files: Prevent created date related bug
@1c56aebf21aa4b84a5b317af91e63d258103b153
--- app/utils/JodaDateUtil.java
+++ app/utils/JodaDateUtil.java
... | ... | @@ -22,6 +22,9 @@ |
22 | 22 |
format = "yyyy-MM-dd h:mm:ss a"; |
23 | 23 |
} |
24 | 24 |
SimpleDateFormat sdf = new SimpleDateFormat(format); |
25 |
+ if (date == null) { |
|
26 |
+ return ""; |
|
27 |
+ } |
|
25 | 28 |
return sdf.format(date); |
26 | 29 |
} |
27 | 30 |
public static Date today() { |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?