This error comes when we are trying to do some calculations based on a column that returns NULL value.
This can be handled in the following way
<?xdoxslt:set_variable($_XDOCTX, ‘P’,xdoxslt:get_variable($_XDOCTX, ‘P’)+EXP2[.!=”])?>
Here EXP2 is a column that is returning NULL value.