Martin Toepfer created UIMA-3425:
------------------------------------

             Summary: Ruta: MultiTreeWordList Constructor
                 Key: UIMA-3425
                 URL: https://issues.apache.org/jira/browse/UIMA-3425
             Project: UIMA
          Issue Type: Bug
          Components: ruta
    Affects Versions: 2.1.0ruta
            Reporter: Martin Toepfer


I've had problems using the MultiTreeWordList. I think one constructor misses 
initialization of the root node.

Possible patch:

Index: MultiTreeWordList.java
===================================================================
--- MultiTreeWordList.java      (revision 1521373)
+++ MultiTreeWordList.java      (working copy)
@@ -132,6 +132,7 @@
    *          path of the file to create a TextWordList from
    */
   public MultiTreeWordList(String[] pathnames) throws IOException {
+    this.root = new MultiTextNode();
     for (String pathname : pathnames) {
       load(new FileSystemResource(pathname));
     }




--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to