426358 NPE generating temp dir name if no resourceBase or war