diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-12-21 22:46:34 -0300 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-12-21 22:46:45 -0300 |
commit | 2bd2ac64a7f87d74c8a4b21ea78fd654adcbef77 (patch) | |
tree | 8d99be7f1cc3b78e9d689ba241a8b905880cbb63 | |
parent | b153e16a0e34819cfdef16468e70adbb68ac8233 (diff) | |
download | askbot-2bd2ac64a7f87d74c8a4b21ea78fd654adcbef77.tar.gz askbot-2bd2ac64a7f87d74c8a4b21ea78fd654adcbef77.tar.bz2 askbot-2bd2ac64a7f87d74c8a4b21ea78fd654adcbef77.zip |
added a fix for potential Null for content object in award on a user profile page
-rw-r--r-- | askbot/templates/user_profile/user_stats.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/templates/user_profile/user_stats.html b/askbot/templates/user_profile/user_stats.html index aa5aa07e..c042b5fb 100644 --- a/askbot/templates/user_profile/user_stats.html +++ b/askbot/templates/user_profile/user_stats.html @@ -124,7 +124,7 @@ </span> <ul id="badge-context-{{ badge.id }}" class="badge-context-list" style="display:none"> {% for award in badge_user_awards %} - {% if award.content_object_is_post %} + {% if award.content_object and award.content_object_is_post %} <li> <a title="{{ award.content_object.get_snippet()|collapse }}" |