Bug #1528: Check if name is null before truncating it.

FEA: ItEr76S04BugFixing
This commit is contained in:
Jacobo Aragunde Pérez 2012-08-10 10:42:02 +02:00
parent 89e960a4f6
commit 848a8b5c12

View file

@ -524,7 +524,7 @@ public abstract class OrderElement extends IntegrationEntity implements
}
public void setName(String name) {
if (name.length() > 255) {
if (name != null && name.length() > 255) {
name = name.substring(0, 255);
}
this.getInfoComponent().setName(name);