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