Commit 60a170de authored by Steinberg, Jan's avatar Steinberg, Jan

setSpec null pointer because of wrong if clause

parent a0e052df
......@@ -135,7 +135,7 @@ public class XsltTransformerOaiPmhBundlesStreamSource implements BundlesStreamSo
stream().
flatMap(mp -> {
LOG.debug("filling list identifier stream with mp {}, from {}, until {}, setSpec {}", mp, from, until, setSpec);
if (setSpec.isEmpty() || setSpec == null) {
if (setSpec == null|| setSpec.trim().isEmpty()) {
return client.listIdentifiersStream(mp, from, until, null);
}
return client.listIdentifiersStream(mp, from, until, setSpec);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment