[MGNLSOLR-13] NPE during indexing Created: 17/Apr/13  Updated: 13/Jun/13  Resolved: 13/Jun/13

Status: Closed
Project: Apache Solr (closed)
Component/s: None
Affects Version/s: 3.0
Fix Version/s: 3.0

Type: Bug Priority: Major
Reporter: Milan Divilek Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

During indexing whole (include sub-nodes) demo-project and demo-features sites NPE pop-up in admincentral. In log there is no stacktrace.



 Comments   
Comment by Jan Haderka [ 13/Jun/13 ]

What happens if indexed node is the page itself and such page is the top level page in the website? Such case is not covered by the test.
IMHO if that happens. the node.getParent() call will be returning root node of the repo and followup call to get metadata will fail on the root node. Either fix it or add a test proving that nothing bad happens.

Comment by Jaroslav Simak [ 13/Jun/13 ]

Yeah you're right, it fails.

Generated at Sun Feb 11 23:19:56 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.