myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3325] trunk/app/views/blobs/show.rhtml: Avoid NP


From: noreply
Subject: [myexperiment-hackers] [3325] trunk/app/views/blobs/show.rhtml: Avoid NPE on unknown content type
Date: Tue, 22 Jan 2013 14:28:03 +0000 (UTC)

Revision
3325
Author
stain
Date
2013-01-22 14:28:03 +0000 (Tue, 22 Jan 2013)

Log Message

Avoid NPE on unknown content type

Modified Paths

Diff

Modified: trunk/app/views/blobs/show.rhtml (3324 => 3325)


--- trunk/app/views/blobs/show.rhtml	2013-01-22 14:26:23 UTC (rev 3324)
+++ trunk/app/views/blobs/show.rhtml	2013-01-22 14:28:03 UTC (rev 3325)
@@ -58,12 +58,14 @@
 			    <b>File name:</b>
 			    <%=h @version.local_name %>
 			</p>
-			
+
+  <% if  @version.content_type %>			
 			<p>
 			    <b>File type:</b>
 			    <%=h @version.content_type.title %>
 			</p>
-			
+	<% end %>
+  
 			<br/>
 			
 			<h3>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]