summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-01-20 09:51:48 +0200
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-01-20 09:51:48 +0200
commit3d7b35a37d30365088947de0cf85cc7d4af79162 (patch)
tree6824f72f50b36a54dc9dfe4e1ebb4c19d67a6971 /app/models/note.rb
parent8c46123f9902cfb173e0bdc80c3e111eba1b1841 (diff)
downloadgitlab-ce-3d7b35a37d30365088947de0cf85cc7d4af79162.tar.gz
per line comment fix
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index 48cc2d80f8a..689b620d23f 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -52,6 +52,10 @@ class Note < ActiveRecord::Base
else
noteable
end
+ # Temp fix to prevent app crash
+ # if note commit id doesnt exist
+ rescue
+ nil
end
def line_file_id