Commit 8df90919 authored by Edward Wang's avatar Edward Wang
Browse files

Media: use blank string

parent da4baf56
......@@ -358,7 +358,7 @@ public class Media implements Comparable<Media> {
else {
String fileName = getFileName();
if (fileName == null)
return new String();
return "";
int end = fileName.lastIndexOf(".");
if (end <= 0)
return fileName;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment