Revision 8722
Added by ben leinfelder over 10 years ago
metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/SolrIndex.java | ||
---|---|---|
547 | 547 |
ServiceFailure, XPathExpressionException, NotImplemented, NotFound, UnsupportedType, |
548 | 548 |
IOException, SAXException, ParserConfigurationException, OREParserException, JiBXException, EncoderException { |
549 | 549 |
checkParams(pid, systemMetadata, data); |
550 |
boolean isArchive = systemMetadata.getArchived(); |
|
550 |
boolean isArchive = systemMetadata.getArchived() != null && systemMetadata.getArchived();
|
|
551 | 551 |
if(isArchive ) { |
552 | 552 |
//delete the index for the archived objects |
553 | 553 |
remove(pid.getValue(), systemMetadata); |
Also available in: Unified diff
handle null Boolean in SM.archived field