prevent nullpointer

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1858 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 19 years ago
parent 04ab5da350
commit f6452879d5

@ -404,13 +404,15 @@ public final class yacy {
}catch(NullPointerException e){ }catch(NullPointerException e){
serverLog.logSevere("STARTUP", "Nullpointer Exception while copying the default Locales"); serverLog.logSevere("STARTUP", "Nullpointer Exception while copying the default Locales");
} }
final String[] skinFiles = listManager.getDirListing(defaultSkinsPath.getAbsolutePath()); if(defaultSkinsPath.exists()){
skinsPath.mkdirs(); final String[] skinFiles = listManager.getDirListing(defaultSkinsPath.getAbsolutePath());
for(int i=0;i<skinFiles.length;i++){ skinsPath.mkdirs();
if(skinFiles[i].endsWith(".css")){ for(int i=0;i<skinFiles.length;i++){
serverFileUtils.copy(new File(defaultSkinsPath, skinFiles[i]), new File(skinsPath, skinFiles[i])); if(skinFiles[i].endsWith(".css")){
} serverFileUtils.copy(new File(defaultSkinsPath, skinFiles[i]), new File(skinsPath, skinFiles[i]));
} }
}
}
//regenerate Locales from Translationlist, if needed //regenerate Locales from Translationlist, if needed
final String lang = sb.getConfig("htLocaleSelection", ""); final String lang = sb.getConfig("htLocaleSelection", "");

Loading…
Cancel
Save