Fix possible NPE
This commit is contained in:
parent
33a0094b19
commit
e096e8555f
|
@ -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('/', '_');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue