mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
avoid NPE
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user