projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prevent NPEs when accessing an unset time.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
PostShell.java
diff --git
a/src/main/java/net/pterodactylus/sone/data/PostShell.java
b/src/main/java/net/pterodactylus/sone/data/PostShell.java
index
af9598e
..
716aab9
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/PostShell.java
+++ b/
src/main/java/net/pterodactylus/sone/data/PostShell.java
@@
-128,7
+128,7
@@
public class PostShell extends Post implements Shell<Post> {
*/
@Override
public long getTime() {
- return
time
;
+ return
(time != null) ? time : 0
;
}
/**