From 2597cbeee5809fa77b8f762f4f784f7281239003 Mon Sep 17 00:00:00 2001 From: manalejandro Date: Sun, 15 Jul 2018 18:03:58 +0200 Subject: [PATCH] some changes --- .../com/manalejandro/arjion/controllers/MainController.java | 3 +-- src/main/java/com/manalejandro/arjion/vo/DocumentoVO.java | 5 +++-- src/main/resources/templates/detail.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/manalejandro/arjion/controllers/MainController.java b/src/main/java/com/manalejandro/arjion/controllers/MainController.java index 15b6db9..741c2a1 100644 --- a/src/main/java/com/manalejandro/arjion/controllers/MainController.java +++ b/src/main/java/com/manalejandro/arjion/controllers/MainController.java @@ -76,8 +76,7 @@ public class MainController { documentoVO.setCount(mainService.count()); documentoVO.setDocumentos(mainService.findAllDocumento()); if (archivos.length > 0) { - documentoVO.setArchivos(new ArrayList()); - // Recupera la conficuraciĆ³n de Tika + // Recupera la configuraciĆ³n de Tika TikaConfig tikaConfig = TikaConfig.getDefaultConfig(); // Itera los archivos recibidos for (int i = 0; i < archivos.length; i++) { diff --git a/src/main/java/com/manalejandro/arjion/vo/DocumentoVO.java b/src/main/java/com/manalejandro/arjion/vo/DocumentoVO.java index e255b25..8e3c8ae 100644 --- a/src/main/java/com/manalejandro/arjion/vo/DocumentoVO.java +++ b/src/main/java/com/manalejandro/arjion/vo/DocumentoVO.java @@ -1,5 +1,6 @@ package com.manalejandro.arjion.vo; +import java.util.ArrayList; import java.util.List; import com.manalejandro.arjion.model.Archivo; @@ -7,9 +8,9 @@ import com.manalejandro.arjion.model.Documento; public class DocumentoVO { - private List archivos; + private List archivos = new ArrayList(); private long count; - private List documentos; + private List documentos = new ArrayList(); /** * @return the archivos diff --git a/src/main/resources/templates/detail.html b/src/main/resources/templates/detail.html index efc6f7a..fc4712b 100644 --- a/src/main/resources/templates/detail.html +++ b/src/main/resources/templates/detail.html @@ -37,7 +37,7 @@