X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Foutput%2FBasicOutput.java;h=33a42c574bed176d90556bce1c447fba61ed26fe;hp=9b53859a199c05aa7742b8cd259a310230f5167d;hb=a6395bef99a8e917f67341ef1906917b87df24a4;hpb=73ce17ef4569e43d24f8413ad6b59bc2906aec07 diff --git a/src/be/nikiroo/fanfix/output/BasicOutput.java b/src/be/nikiroo/fanfix/output/BasicOutput.java index 9b53859..33a42c5 100644 --- a/src/be/nikiroo/fanfix/output/BasicOutput.java +++ b/src/be/nikiroo/fanfix/output/BasicOutput.java @@ -92,7 +92,7 @@ public abstract class BasicOutput { /** * Call {@link OutputType#valueOf(String.toUpperCase())} but return NULL - * for NULL instead of raising exception. + * for NULL and empty instead of raising an exception. * * @param typeName * the possible type name @@ -100,7 +100,7 @@ public abstract class BasicOutput { * @return NULL or the type */ public static OutputType valueOfNullOkUC(String typeName) { - if (typeName == null) { + if (typeName == null || typeName.isEmpty()) { return null; } @@ -441,7 +441,7 @@ public abstract class BasicOutput { case LATEX: return new LaTeX().setType(type, infoCover, infoCover); case HTML: - return new Html().setType(type, false, false); + return new Html().setType(type, infoCover, infoCover); } }