thanks, Stefan
Karl �ie wrote:
Hi there, just got around a NPE in both slide-2.1 and slide-2.2pre that is thrown in IndexTrigger upon drop/delete index.
i changed line 115 in IndexTrigger.java:
from :
indexers[j].dropIndex( new Uri(delete[i].getNamespace(), delete[i].getUri()), delete[i].getRevisionDescriptor().getRevisionNumber() );
to :
indexers[j].dropIndex(
new Uri(delete[i].getNamespace(),
delete[i].getUri()),
delete[i].getRevisionDescriptor()==null?null: delete[i].getRevisionDescriptor().getRevisionNumber()
);
as you can see getRevisionDescriptor() returns NULL and throws a NPE when we try to do getRevisionNumber() on it.
The thing is that im a complete newbie to Slide so i wonder if this is just a problem with IndexTrigger or if this is supposed to be right because the getRevisionDescriptor() shouldnt return NULL. My index only needs the getUri() result but i just wanted to ask?
Mvh Karl �ie
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Stefan L�tzkendorf -- [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
