Skip to content
Browse files

GEOT-4236

  • Loading branch information...
1 parent 5f6c252 commit d1772f8a4d67151bf213b2b6f87ed7f208669db3 @simboss simboss committed Aug 21, 2012
View
3 modules/plugin/geotiff/src/main/java/org/geotools/gce/geotiff/GeoTiffReader.java
@@ -723,8 +723,7 @@ private CoordinateReferenceSystem getCRS(Object source) {
}
final int index = sourceAsString.lastIndexOf(".");
- final StringBuilder base = new StringBuilder(sourceAsString
- .substring(0, index)).append(".prj");
+ final String base=index>0?sourceAsString.substring(0, index)+".prj":sourceAsString+".prj";
// does it exist?
final File prjFile = new File(base.toString());

0 comments on commit d1772f8

Please sign in to comment.
Something went wrong with that request. Please try again.