Ticket #12935: DateTimeHelper.java.patch

File DateTimeHelper.java.patch, 578 bytes (added by iwakeh, 5 years ago)
  • src/main/java/org/torproject/onionoo/docs/DateTimeHelper.java

    diff --git a/src/main/java/org/torproject/onionoo/docs/DateTimeHelper.java b/src/main/java/org/torproject/onionoo/docs/DateTimeHelper.java
    index 78aa78f..6af2bbc 100644
    a b public class DateTimeHelper { 
    7979  }
    8080
    8181  public static long parse(String string, String format) {
     82    if(null == string){
     83       return -1L;
     84    }
    8285    try {
    8386      return getDateFormat(format).parse(string).getTime();
    8487    } catch (ParseException e) {