null value convertion and permission checking