isn't there a NPE possible for tmpDataDir?