tests: fix NPE, add BasicSupportUtilities tests
[nikiroo-utils.git] / src / be / nikiroo / fanfix / supported / Fanfiction.java
index 10c82fc522c26cf24fe6936972a97852f9956825..0dcd7903e077d2bb6afa268247e04ea39a04722a 100644 (file)
@@ -138,7 +138,7 @@ class Fanfiction extends BasicSupport_Deprecated {
                        }
                }
 
-               return BasicSupportHelper.fixAuthor(author);
+               return bsHelper.fixAuthor(author);
        }
 
        private String getDate(InputStream in) {
@@ -305,9 +305,9 @@ class Fanfiction extends BasicSupport_Deprecated {
                                        if (pos >= 0) {
                                                boolean chaptered = false;
                                                for (String lang : Instance.getConfig().getList(
-                                                               Config.CHAPTER)) {
+                                                               Config.CONF_CHAPTER)) {
                                                        String chapterWord = Instance.getConfig()
-                                                                       .getStringX(Config.CHAPTER, lang);
+                                                                       .getStringX(Config.CONF_CHAPTER, lang);
                                                        int posChap = line.indexOf(chapterWord + " ");
                                                        if (posChap < pos) {
                                                                chaptered = true;