Skip to content
Snippets Groups Projects
Commit 82399c44 authored by mbrodhu's avatar mbrodhu
Browse files

solved false and no verb param

parent 4a68b398
No related branches found
No related tags found
No related merge requests found
......@@ -688,7 +688,7 @@ public class OAIPMHImpl implements OAIPMHProducer {
String schemaLocations =
OAIPMHUtilities.OAIPMH_NAMESPACE + " " + OAIPMHUtilities.OAIPMH_SCHEMA_LOCATION;
// Add OAI_DC and DC schema location if needed.
if (theVerb.equals("GetRecord") || theVerb.endsWith("ListRecords")) {
if (theVerb!=null && (theVerb.equals("GetRecord") || theVerb.endsWith("ListRecords"))) {
schemaLocations +=
OAIPMHUtilities.OAIDC_NAMESPACE + " " + OAIPMHUtilities.OAIDC_SCHEMA_LOCATION +
" " + OAIPMHUtilities.DC_NAMESPACE + " " + OAIPMHUtilities.DC_SCHEMA_LOCATION;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment