Fix issue ("null" was shown on post content when there was no content to display)

This commit is contained in:
Pierre 2018-05-02 19:13:58 +02:00
parent f0374e8703
commit 8d4164b181

View File

@ -99,7 +99,14 @@ public class Post {
} }
public String getContent() { public String getContent() {
if(content == null)
return "";
if(content.equals("null"))
return "";
return content; return content;
} }
//Set and get the type of the post //Set and get the type of the post