PATRIK27 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

Relative Destionation Filenames result in StringIndexOutOfBoundsException #185

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. start the exporter with a RELATIVE filename and the tmp dir elsewhere(e.g 
"-d result.zip -t /tmp/osm_bug/" 
2. use any detail and proceed to the last step
3. there it will fail.
Zipping files to ./result.zip ...java.lang.StringIndexOutOfBoundsException: 
String index out of range: 24
    at java.lang.String.substring(String.java:1946)

What is the expected output? What do you see instead?
Creation of the file is expected => actual excpt an no zip file

What version of the product are you using? On what operating system?
SVN and 1.05

Please provide any additional information below.

I attached a log and a proposed fix (as diff)

Original issue reported on code.google.com by bernhard...@gmail.com on 16 Mar 2011 at 10:43

Attachments:

GoogleCodeExporter commented 8 years ago
Makes sense.  When I have time I'll try it out and commit it.

Original comment by neilboyd on 20 Apr 2011 at 7:42

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r928.

Original comment by neilboyd on 27 Apr 2011 at 5:38