Hi, I have a problem handling null values in my tFilter.
My tFilter condition :
( input_row.COMPANY_CODE.equals("31") || input_row.COMPANY_CODE.equals("14") ) && !(input_row.DESCRIPTION.equals("SUB-TOTAL :")) && !(input_row.DESCRIPTION.equals("TOTAL :"))
I have this error ODS_BALANCE_CSV_TEMP - tFilterRow_3 null
there're null values in the columns of the table that I'm trying to filter. Before I had a classic filter but since I need to combine the conditions OR and AND, I have to do it in java.
How to overcome this problem?
Solved! Go to Solution.
You will have to assign either true or false for the null condition by catching them. Please see the screen shot below for a simple example.
Here, if the input data is coming as null, then we are converting it into either true or false based on the condition. You will have to do null check condition before going to equal condition clause. Then it will work fine.
If you think the suggestion given has helped you, please mark it as acceptable solution.