throwing exception of null namespace