Value calculate for each row in a table

Hello,

I used this example Value calculate for each row in a table to generate a calculated column in a table. But is keep getting a nullpointerexception each time i try to add an new row. The error is pointing to ( ```
label.setValue(entity.getCount() * entity.getPrice()):wink: in my application. I changed everything i could think of but still no luck.

Any help is welcome

Hi,

When you add a new row count and price are null. So, you need to check that these values are not null before multiplying.

Regards,
Gle