null dir catch exception