avoid crash on null namespace