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

fixed array index exception

parent 8b800489
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;