Skip to content
Snippets Groups Projects
Commit c5ad7dd3 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Handle empty string and non-numbers

parent 2a4c73c3
Branches
Tags
No related merge requests found
...@@ -144,7 +144,14 @@ public class DataTransformer { ...@@ -144,7 +144,14 @@ public class DataTransformer {
{ {
if(r.getAllValues().get(VIPSResultParameters[i]) != null && ! r.getAllValues().get(VIPSResultParameters[i]).toLowerCase().equals("null")) if(r.getAllValues().get(VIPSResultParameters[i]) != null && ! r.getAllValues().get(VIPSResultParameters[i]).toLowerCase().equals("null"))
{ {
data[row.intValue()][i] = Double.valueOf(r.getAllValues().get(VIPSResultParameters[i])); try
{
data[row.intValue()][i] = Double.valueOf(r.getAllValues().get(VIPSResultParameters[i]));
}
catch(NumberFormatException ex)
{
// We leave it empty
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment