New support: YiffStar (still no logged-in content)
[fanfix.git] / src / be / nikiroo / fanfix / Library.java
index 4db3868b5928701ecda2a53e6f522294aee00cc9..6e0262b43b1c78ac58406f65807cb2399a027031 100644 (file)
@@ -390,7 +390,11 @@ public class Library {
         * @return the target
         */
        private File getFile(MetaData key) {
-               String title = key.getTitle().replaceAll("[^a-zA-Z0-9._+-]", "_");
+               String title = key.getTitle();
+               if (title == null) {
+                       title = "";
+               }
+               title = title.replaceAll("[^a-zA-Z0-9._+-]", "_");
                return new File(getDir(key), key.getLuid() + "_" + title);
        }