Shouldn't we be checking value != NULL before we come here ?