Bug #4805
closedsearching for data gives an NPE
0%
Description
I searched for Kruger on both KNB and DEV using both authenticated and unauthenticated searches. I authenticated as necessary, and I got an NPE:
java.lang.NullPointerException
at ptolemy.vergil.basic.KeplerDocumentationAttribute.createInstanceFromExisting(KeplerDocumentationAttribute.java:195)
at org.ecoinformatics.seek.datasource.eml.eml2.Eml200DataSource.generateDocumentationForInstance(Eml200DataSource.java:1070)
at org.ecoinformatics.seek.datasource.eml.eml2.EML2MetadataSpecification.transformResultset(EML2MetadataSpecification.java:252)
at org.ecoinformatics.seek.datasource.eml.eml2.EML2MetadataSpecification.addResultsetRecordsToContainer(EML2MetadataSpecification.java:406)
ERROR (org.ecoinformatics.seek.datasource.eml.eml2.Eml200DataSource:generateDocumentationForInstance:1078) error encountered whilst generating default documentation for actor instance: null
Updated by Jing Tao over 14 years ago
It turned out that the NPE exception didn't affect the search result. But it still was annoying. We added a checking null statement on KeplerDocumentationAttribute.createInstanceFromExisting. The error has gone.