Loading histream-i2b2/src/main/java/de/sekmi/histream/i2b2/ont/Import.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -360,7 +360,7 @@ public class Import implements AutoCloseable{ done = true; done = true; } } // skip the http:// part of url prefixes // 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 # // prefixes will end in # prefix_char = '#'; prefix_char = '#'; pos += 7; pos += 7; Loading Loading
histream-i2b2/src/main/java/de/sekmi/histream/i2b2/ont/Import.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -360,7 +360,7 @@ public class Import implements AutoCloseable{ done = true; done = true; } } // skip the http:// part of url prefixes // 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 # // prefixes will end in # prefix_char = '#'; prefix_char = '#'; pos += 7; pos += 7; Loading