Skip to content
Snippets Groups Projects
Commit 980fa3be authored by Stefan E. Funk's avatar Stefan E. Funk
Browse files

Arg! Did not anticipate strings to have not length(x+1) :-D

parent cdb8dbec
No related branches found
No related tags found
No related merge requests found
......@@ -240,8 +240,8 @@ public class SetDeliverer {
// Divide ID and title.
String combined = b.getKeyAsString();
int indexOf = combined.indexOf(DH_COLLECTION_FILTER_NAME);
String id = combined.substring(0, indexOf);
String title = combined.substring(indexOf + 1);
String id = combined.substring(0, indexOf - 1);
String title = combined.substring(indexOf);
// Set set.
SetType newSet = new SetType();
newSet.setSetSpec(id);
......
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