Search bug setParentContext

Hi,

i have an elan file where as soon as I start to search in 4 specific tiers I get a an Error. With the other tiers all the search queries run fine. The Error I get is logged as:

java.lang.NullPointerException
	at mpi.eudico.client.annotator.search.result.model.ElanMatch.setParentContext(ElanMatch.java:253)
	at mpi.eudico.client.annotator.search.model.ElanSearchEngine.getMatches(ElanSearchEngine.java:370)
	at mpi.eudico.client.annotator.search.model.ElanSearchEngine.getChildMatches(ElanSearchEngine.java:534)
	at mpi.eudico.client.annotator.search.model.ElanSearchEngine.filterDependentConstraints(ElanSearchEngine.java:615)
	at mpi.eudico.client.annotator.search.model.ElanSearchEngine.executeThread(ElanSearchEngine.java:106)
	at mpi.eudico.client.annotator.search.model.ElanSearchEngine.performSearch(ElanSearchEngine.java:126)
	at mpi.search.model.DefaultSearchController$1.construct(DefaultSearchController.java:108)
	at mpi.search.gui.SwingWorker$2.run(SwingWorker.java:41)
	at java.base/java.lang.Thread.run(Thread.java:832)

Is this a bug or am I doing something wrong?

Thank you very much.
Best
Tim

Hi, it is more likely that this is a bug than that you’re doing something wrong. But it is also possible that there is some sort of inconsistency within the file.

If you would run File->Validate EAF File... on that file (it doesn’t need to be opened first), are there any errors or warnings in the report?

-Han

It shows the following error:

++ Start of XML validation by SAXParser

ERROR:   cvc-elt.1.a: Cannot find the declaration of element 'ANNOTATION_DOCUMENT'.
Line:    1
Column:  105
Received 0 warnings and 1 errors
-- End of XML validation by SAXParser

Thanks

Hmm, strange, apparently the validator doesn’t find the XML schema. Is it a really old eaf file?
This most likely doesn’t have anything to do with the search problem (assuming that the report continues with some information messages concerning tier types and tiers etc.).

So, still no idea what causes the search error. I would be happy to have a look at the file and try to reproduce the error, if you are willing to send the file (and the query) to me (han.sloetjes AT mpi.nl).