[eluser]danmontgomery[/eluser]
I'm guessing that you're just setting the value without checking it:
Code:
$this->db->set('some_field', $this->input->post('some_field'));
Which will return FALSE, or 0 for form fields which are left blank (I'm assuming this is what you mean by null). To solve this you just need to check the value of the field before you set it.
Code:
if($this->input->post('some_field') != FALSE) {
$this->db->set('some_field', $this->input->post('some_field'));
}