I have a column in data source that I am mandated to convert to float. The column contains words so need to replace them empty strings which I am doing as Variable.
eplace("N/A","").equals("") ? null : row3.Estimated_Sales_Price.trim()
then I am doing,
Var.var2 == null ? null : Float.parseFloat(Var.var2)
I am getting error: java.lang.NullPointerException. I have tried everything but all have proved to be futile.
Any insights anyone please!!!!!!!!!
Solved! Go to Solution.