Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit b3af6e4

Browse files
committed
Fix reading scale attribute
1 parent 8a5e83a commit b3af6e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/nz/co/fortytwo/signalk/processor/UploadProcessor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private void install(Path destination) throws Exception {
164164
Document document = reader.read(new File(destDir, "tilemapresource.xml"));
165165

166166
String title = document.getRootElement().element("Title").getText();
167-
String scale = document.getRootElement().element("Metadata").attributeValue("scale");
167+
String scale = document.getRootElement().element("Metadata").attribute("scale").getText();
168168
double maxRes = 0.0;
169169
double minRes = Double.MAX_VALUE;
170170
int maxZoom = 0;

0 commit comments

Comments
 (0)