mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2024-11-27 07:49:28 +00:00
Fix issue ("null" was shown on post content when there was no content to display)
This commit is contained in:
parent
f0374e8703
commit
8d4164b181
@ -99,7 +99,14 @@ public class Post {
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
if(content == null)
|
||||
return "";
|
||||
|
||||
if(content.equals("null"))
|
||||
return "";
|
||||
|
||||
return content;
|
||||
|
||||
}
|
||||
|
||||
//Set and get the type of the post
|
||||
|
Loading…
Reference in New Issue
Block a user