From 6b8720c1584e14dcfe28e2dd321cb237ed4caede Mon Sep 17 00:00:00 2001 From: "R.W.Majeed" Date: Mon, 29 May 2017 01:03:43 +0200 Subject: [PATCH] fixed array index exception --- .../src/main/java/de/sekmi/histream/i2b2/ont/Import.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/histream-i2b2/src/main/java/de/sekmi/histream/i2b2/ont/Import.java b/histream-i2b2/src/main/java/de/sekmi/histream/i2b2/ont/Import.java index 9f9c11c..0ce3883 100644 --- a/histream-i2b2/src/main/java/de/sekmi/histream/i2b2/ont/Import.java +++ b/histream-i2b2/src/main/java/de/sekmi/histream/i2b2/ont/Import.java @@ -360,7 +360,7 @@ public class Import implements AutoCloseable{ done = true; } // skip the http:// part of url prefixes - if( path.substring(pos,pos+7).equals("http://") ){ + if( path.length()-pos > 7 && path.substring(pos,pos+7).equals("http://") ){ // prefixes will end in # prefix_char = '#'; pos += 7; -- GitLab