Menu

#4471 Error not descriptive enough

OSCAR Main Trunk
open
None
1
2016-11-15
2016-11-15
John Wilson
No

OSCAR build: master

Preconditions:
1. Please provide all information needed before this issue will present
User is getting an error when saving measurements but they are unable to determine which measurement is causing the error. Log reports the error but not the measurement type that is causing the error.

Steps to reproduce:
1. Please give all steps to reproduce this issue (if there is data
required to reproduce, please attach that to the issue)
Unable to reproduce exact issue user is having but that is why I am committing this. But to simulate the issue you can set dataField="" in measurements on a saved BMI for a patient. Then open CMD indicators and the error will display in the log file.

"2016-11-14 13:44:19,609 ERROR [MeasurementDSHelper:130] Error

java.lang.NumberFormatException: empty String

            at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1020)

            at java.lang.Double.parseDouble(Double.java:540)

            at oscar.oscarEncounter.oscarMeasurements.util.MeasurementDSHelper.getDataAsDouble(MeasurementDSHelper.java:128)"

Expected Result:

Observed:
Please attach relevant log entries, screenshots

Other details:

Discussion