check dao on NULL