avoid NPE

This commit is contained in:
Kohsuke Kawaguchi
2012-04-12 11:01:43 -07:00
parent f0ff31a1af
commit f5b34861bd

View File

@@ -489,6 +489,7 @@ public class GitHub {
}
/*package*/ static Date parseDate(String timestamp) {
if (timestamp==null) return null;
for (String f : TIME_FORMATS) {
try {
SimpleDateFormat df = new SimpleDateFormat(f);