From 8d4164b18187f3cb5c59bfddece3fa9afe7736ec Mon Sep 17 00:00:00 2001 From: Pierre Date: Wed, 2 May 2018 19:13:58 +0200 Subject: [PATCH] Fix issue ("null" was shown on post content when there was no content to display) --- .../android/comunic/client/data/models/Post.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/data/models/Post.java b/app/src/main/java/org/communiquons/android/comunic/client/data/models/Post.java index 1c93153..74b7d8c 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/data/models/Post.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/data/models/Post.java @@ -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