diff --git a/src/main/java/org/ntlab/nemophila/resources/accounts/AccountPostRest.java b/src/main/java/org/ntlab/nemophila/resources/accounts/AccountPostRest.java index 10ec5cb..d496aca 100644 --- a/src/main/java/org/ntlab/nemophila/resources/accounts/AccountPostRest.java +++ b/src/main/java/org/ntlab/nemophila/resources/accounts/AccountPostRest.java @@ -22,12 +22,12 @@ if(account != null && account.getToken().equals(token)) { Post post = account.getPost(pid); - if (!genre.equals(null)) post.setGenre(genre); - if (!image1.equals(null)) post.setImage1(image1); - if (!image2.equals(null)) post.setImage2(image2); - if (!image3.equals(null)) post.setImage3(image3); - if (!rate.equals(null)) post.setRate(rate); - if (!comment.equals(null)) post.setComment(comment); + if (genre != null) post.setGenre(genre); + if (image1 != null) post.setImage1(image1); + if (image2 != null) post.setImage2(image2); + if (image3 != null) post.setImage3(image3); + if (rate != null) post.setRate(rate); + if (comment != null) post.setComment(comment); } }