Better error handing in V2 file importer

This commit is contained in:
Branislav Stojkovic
2018-12-25 12:26:17 +01:00
parent b489adf7c7
commit 48a6857738
4 changed files with 9 additions and 3 deletions
Binary file not shown.
@@ -251,8 +251,10 @@ public class V2FileParser implements IOldFileParser {
else if (pr10.equals("M")) else if (pr10.equals("M"))
ru = ResistanceUnit.M; ru = ResistanceUnit.M;
else if (pr10.equals("R")) else if (pr10.equals("R"))
ru = ResistanceUnit.R; ru = ResistanceUnit.R;
value = Double.parseDouble(pr9); try {
value = Double.parseDouble(pr9);
} catch (Exception e) {}
} }
} else if (propertyList.item(j).getAttributes().getNamedItem("name").getNodeValue() } else if (propertyList.item(j).getAttributes().getNamedItem("name").getNodeValue()
Binary file not shown.
+5 -1
View File
@@ -2041,7 +2041,11 @@
<org.diylc.appframework.update.Change> <org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType> <changeType>IMPROVEMENT</changeType>
<description>Vastly improve performance of selection aree calculations, especially with bigger layouts</description> <description>Vastly improve performance of selection aree calculations, especially with bigger layouts</description>
</org.diylc.appframework.update.Change> </org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Better error handing in V2 file importer</description>
</org.diylc.appframework.update.Change>
</changes> </changes>
<url>https://github.com/bancika/diy-layout-creator/releases</url> <url>https://github.com/bancika/diy-layout-creator/releases</url>
</org.diylc.appframework.update.Version> </org.diylc.appframework.update.Version>