File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/main/java/org/kohsuke/github Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 2
2
<modelVersion >4.0.0</modelVersion >
3
3
<groupId >org.kohsuke</groupId >
4
4
<artifactId >cortexapps-github-api</artifactId >
5
- <version >1.315 </version >
5
+ <version >1.316 </version >
6
6
<name >GitHub API for Java</name >
7
7
<url >https://github-api.kohsuke.org/</url >
8
8
<description >GitHub API for Java</description >
Original file line number Diff line number Diff line change 1
1
package org .kohsuke .github ;
2
2
3
+ import edu .umd .cs .findbugs .annotations .Nullable ;
3
4
import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
4
5
5
6
import java .io .File ;
@@ -157,8 +158,13 @@ public boolean isPrerelease() {
157
158
*
158
159
* @return the published at
159
160
*/
161
+ @ Nullable
160
162
public Date getPublished_at () {
161
- return new Date (published_at .getTime ());
163
+ if (published_at != null ) {
164
+ return new Date (published_at .getTime ());
165
+ } else {
166
+ return null ;
167
+ }
162
168
}
163
169
164
170
/**
You can’t perform that action at this time.
0 commit comments