NPE in TextGridObject:checkMetadataCompleteness [was #7495]
{color:red}
reported by [~haase] at 2008-09-17
previously known as [trac#80|http://www.textgrid.de/trac/ticket/80] {color}
This method throws an uncatched NullPointerException when fed with correct metadata (especially when they have the administrative/middleware element in place). Happens f.e. with the object in attached xml file.
To reproduce (as of 2008-09-17): Start Lab, authenticate as testuser, open recherche view, search for title=abmartern and project=TGPR14.
This is the stack trace: {code}
java.lang.NullPointerException
at info.textgrid.lab.core.model.TextGridObject.checkMetadataCompleteness(TextGridObject.java:242) at info.textgrid.lab.core.model.TextGridObject.invalidateCache(TextGridObject.java:226) at info.textgrid.lab.core.model.TextGridObject.setMetadataXML(TextGridObject.java:495) at info.textgrid.lab.core.model.TextGridObject.<init>(TextGridObject.java:358) at info.textgrid.lab.core.model.TextGridObject.getInstance(TextGridObject.java:648) at info.textgrid.lab.search.ResultHolder.addObject(ResultHolder.java:69) at info.textgrid.lab.search.OMFilter.execute(OMFilter.java:130) at info.textgrid.lab.search.views.SearchView$3.run(SearchView.java:336) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
! {code}