Commit d233c2ad authored by Quxl's avatar Quxl

x

parent c33ac762
...@@ -33,10 +33,14 @@ public class DateUtil { ...@@ -33,10 +33,14 @@ public class DateUtil {
public static final DateFormat format_HHmmss = new SimpleDateFormat("HHmmss"); public static final DateFormat format_HHmmss = new SimpleDateFormat("HHmmss");
public static Date parseTime_HHmmss(String timeString) { public static Date parseTime_HHmmss(String timeString) {
try { if (timeString == null || timeString.trim().length() == 0) {
return format_HHmmss.parse(timeString); return null;
} catch (ParseException e) { } else {
throw new XRException("Error time value " + timeString, e); try {
return format_HHmmss.parse(timeString);
} catch (ParseException e) {
throw new XRException("Error time value " + timeString, e);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment