.user-profile
  %h1= @user.name
  - if @user == current_user
    %ol
      %li= link_to t(".edit"), action: :edit
      %li= link_to t(".update_account"), edit_user_registration_path
      %li= link_to t(".my_locations"), user_locations_path
  .website
    = link_to @profile.website, @profile.website, rel: :nofollow unless @profile.website.empty?
  - if @profile.picture
    = image_tag @profile.picture.url, alt: "", title: t(".profile_picture_title", name: @user.name)
  .about
    = @profile.about
  .groups
    %p= t ".is_a_member_of_groups", name: @user.name, count: @user.groups.count
    - if @user.groups.count > 0
      %ol
        - @user.groups.each do |g|
          %li= link_to g.name, group_path(g)

.user-profile
  %h1= @user.name
  - if @user == current_user
    %ol
      %li= link_to t(".edit"), action: :edit
      %li= link_to t(".update_account"), edit_user_registration_path
      %li= link_to t(".my_locations"), user_locations_path
  - if @profile.website?
    .website
      = link_to @profile.website, @profile.website, rel: :nofollow
  - if @profile.picture
    = image_tag @profile.picture.url, alt: "", title: t(".profile_picture_title", name: @user.name)
  .about
    = @profile.about
  .groups
    %p= t ".is_a_member_of_groups", name: @user.name, count: @user.groups.count
    - if @user.groups.count > 0
      %ol
        - @user.groups.each do |g|
          %li= link_to g.name, group_path(g)

Fix invalid null check on user profile page.
Fix invalid null check on user profile page.
