Commit 6b8720c1 authored by R.W.Majeed's avatar R.W.Majeed

fixed array index exception

parent 8b800489
...@@ -360,7 +360,7 @@ public class Import implements AutoCloseable{ ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment