private void updateDetails() { viewHolder.titleTextView.setText(mMovie.getTitle()); viewHolder.plotSynopsisTextView.setText(this.getText(R.string.not_available)); viewHolder.releaseDateTextView.setText(this.getText(R.string.not_available)); if (mMovie.getPlotSynopsis() != null && !mMovie.getPlotSynopsis().equals("null")) { viewHolder.plotSynopsisTextView.setText(mMovie.getPlotSynopsis()); } if (mMovie.getReleaseDate() != null && !mMovie.getReleaseDate().equals("null")) { viewHolder.releaseDateTextView.setText(mMovie.getReleaseDate()); } viewHolder.userRatingBar.setRating(mMovie.getVoteAverage().floatValue() / 2); }