1
0
mirror of https://github.com/yacy/yacy_search_server.git synced 2025-07-17 08:26:08 -04:00

prevent nullpointer

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1858 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
allo
2006-03-08 11:31:39 +00:00
parent 04ab5da350
commit f6452879d5

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