Fix --export
[fanfix.git] / src / be / nikiroo / fanfix / Library.java
index 68f93c5385c66ea52c7f4bd2fd6d43eb8ed8bb3b..15b81e44db7aca3caf8869f8f0b53539e1ddb8aa 100644 (file)
@@ -194,6 +194,11 @@ public class Library {
                        throw new IOException("Output type not supported: " + type);
                }
 
+               Story story = getStory(luid);
+               if (story == null) {
+                       throw new IOException("Cannot find story to export: " + luid);
+               }
+
                return out.process(getStory(luid), target);
        }