Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 3f13084

Browse files
committed
ignore null case
1 parent 894c5b2 commit 3f13084

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

services/project_service/src/java/main/com/topcoder/service/project/impl/ProjectServiceBean.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,9 +2001,7 @@ private void checkProjectData(ProjectData projectData, boolean isCreate) throws
20012001
}
20022002

20032003
String description = projectData.getDescription();
2004-
if (null == description) {
2005-
throw logException(new IllegalArgumentFault("The description attribute of the project data can not be null."));
2006-
} else if (description.trim().length() > 10000) {
2004+
if (null != description && description.trim().length() > 10000) {
20072005
throw logException(new IllegalArgumentFault("The description attribute of the project data cann't be more than 10000 characters."));
20082006
}
20092007

0 commit comments

Comments
 (0)