morfologik / morfologik-stemming

Tools for finite state automata construction and dictionary-based morphological dictionaries. Includes Polish stemming dictionary.
BSD 3-Clause "New" or "Revised" License
187 stars 44 forks source link

Dictionary.read(URL) ends in NPE when reading from a JAR resource #65

Closed dweiss closed 9 years ago

dweiss commented 9 years ago

This is a problem of the "nice" path conversion:

featureMapURL = new URL(dictURL,   DictionaryMetadata.getExpectedMetadataFileName(dictURL.toURI().getPath()));

Unfortunately dictURL.toURI().getPath() returns null for JAR URLs. Back to old method then.