I just added the code in red and now the code is producing duplicate information in different rows, but in reality there is different info. that goes into every row/column.
Please help me! and i wish i could just take out the cell == null but i can't because nullpointerexception is thrown if i have an empty column.
instead you should post here where exactly is null pointer exception thrown from.
What you should do is, see which value is null and then change it to an empty string, that way you wont have to use if (cell==null)
You must have a logic to handle null values first
Bookmarks