Sorry I misunderstood. That NPE can only happen if the uniqueKey is not defined. The code already checks for a reader.fields() returning null.
On Wed, Oct 16, 2013 at 11:22 AM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > Just to be clear, you had a "required" uniqueKey defined in the schema > before you indexed any document, is that correct? > > It is possible to have a NPE in that line if there is an empty segment or > if there are documents but no fields! I'm curious to understand how you > ended up with an index like that. > > > On Wed, Oct 16, 2013 at 11:01 AM, RadhaJayalakshmi < > rlakshminaraya...@inautix.co.in> wrote: > >> Thanks for the response!! >> Yes i have defined unique key in the schema... Still it is throwing the >> same >> error.. >> Is this SPLITSHARD a new feature that is under development in solr 4.4? >> Has >> anyone able to split the shards using SPLITSHARD successfully? >> >> >> >> >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/SPLITSHARD-not-working-in-SOLR-4-4-0-tp4095623p4095789.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> > > > > -- > Regards, > Shalin Shekhar Mangar. > -- Regards, Shalin Shekhar Mangar.