diff --git a/pom.xml b/pom.xml
index 7a0c45e..c783bac 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
org.ohnlp.medtagger
medtagger
- 1.0.70
+ 1.0.71
The MedTagger biomedical information extraction pipeline
diff --git a/src/main/java/org/ohnlp/medtagger/backbone/SectionResolutionTransform.java b/src/main/java/org/ohnlp/medtagger/backbone/SectionResolutionTransform.java
index 539f03d..b29dafc 100644
--- a/src/main/java/org/ohnlp/medtagger/backbone/SectionResolutionTransform.java
+++ b/src/main/java/org/ohnlp/medtagger/backbone/SectionResolutionTransform.java
@@ -65,10 +65,13 @@ public void process(ProcessContext pc) {
if (s.trim().length() == 0) {
return;
}
- String cand = s.split(":")[0].trim();
- if (cand.length() > 0) {
- // And output
- pc.output(KV.of(cand, 1));
+ String[] parsed = s.split(":");
+ if (parsed.length > 0) {
+ String cand = parsed[0].trim();
+ if (cand.length() > 0) {
+ // And output
+ pc.output(KV.of(cand, 1));
+ }
}
});