Fix possible NPE

This commit is contained in:
0xboobface 2020-05-20 18:17:58 +02:00
parent 33a0094b19
commit e096e8555f
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ public abstract class AbstractModel implements Model {
@Override
public String getSanitizedNamed() {
String sanitizedName = getName();
String sanitizedName = Optional.ofNullable(getName()).orElse("");
return sanitizedName.replace(' ', '_').replace('\\', '_').replace('/', '_');
}