Actions
Bug #41 | PJV-0001
closedException while converting string to float
Start date:
09/18/2024
Due date:
% Done:
100%
Estimated time:
csWload:
csOldCode:
csID:
PJV-0001
csChapter:
depGrahInReports:
Include if has relations
Description
In case we have a param which can have a number value or a string value, when changing from string to number the value has to be converted (if possible). If there is an exception, the default float shall be set.
In particular, if the string is an IP address, which has several dots, exception occurs in the background, and the value is still there.
Updated by Txinto Vaz 2 months ago
- Status changed from New to In Progress
The trace shows the exception point:
PORISXML.update: 5 Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: multiple points at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1914) at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110) at java.base/java.lang.Double.parseDouble(Double.java:543) at org.gatATAC.poris.formatters.ValueDoubleFormatter.getValue(ValueDoubleFormatter.java:37) at org.gatATAC.poris.PORISValueFloat.isValidFromStr(PORISValueFloat.java:142) at org.gatATAC.poris.Cfg.getData(Cfg.java:88) at org.gatATAC.poris.player.ValueGUICell.update(ValueGUICell.java:237) at org.gatATAC.poris.player.ValueGUICell.setValue(ValueGUICell.java:53) at org.gatATAC.poris.player.CfgGUIPanel.setValue(CfgGUIPanel.java:72) at org.gatATAC.poris.player.CfgGUI.update(CfgGUI.java:149)
Actions
Go to top