Fixed bug when user is deleted

This commit is contained in:
Ziver Koc 2017-08-02 11:31:33 +02:00
parent cb2e6ace37
commit c53bc63520

3
src/zall/bean/Folder.java Normal file → Executable file
View file

@ -76,7 +76,8 @@ public class Folder extends DBBean{
String[] tmp = path.split("/"); String[] tmp = path.split("/");
name = tmp[tmp.length-1]; name = tmp[tmp.length-1];
} }
String tmp = name.replaceAll("\\{NAME\\}", user.getName()); String userName = user.getName() != null ? user.getName() : "UNKNOWN";
String tmp = name.replaceAll("\\{NAME\\}", userName);
return tmp; return tmp;
} }
public String getUnModName(){ public String getUnModName(){