Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c825722

Browse filesBrowse files
Merge pull request #17 from cortexapps/Fix-releases
[CET-3544] Handle Null Published At value
2 parents 897fff4 + a2129b2 commit c825722
Copy full SHA for c825722

File tree

Expand file treeCollapse file tree

2 files changed

+8
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+8
-2
lines changed

‎pom.xml

Copy file name to clipboardExpand all lines: pom.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>org.kohsuke</groupId>
44
<artifactId>cortexapps-github-api</artifactId>
5-
<version>1.315</version>
5+
<version>1.316</version>
66
<name>GitHub API for Java</name>
77
<url>https://github-api.kohsuke.org/</url>
88
<description>GitHub API for Java</description>

‎src/main/java/org/kohsuke/github/GHRelease.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHRelease.java
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.kohsuke.github;
22

3+
import edu.umd.cs.findbugs.annotations.Nullable;
34
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
45

56
import java.io.File;
@@ -157,8 +158,13 @@ public boolean isPrerelease() {
157158
*
158159
* @return the published at
159160
*/
161+
@Nullable
160162
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+
}
162168
}
163169

164170
/**

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.