@@ -268,6 +268,9 @@ public class CourseServiceImpl implements CourseService {
*/
private boolean headerError(String[] header) {
for (int i = 0; i < EXCEL_HEADER.length; i++) {
+ if (null == header[i]) {
+ return true;
+ }
if (!EXCEL_HEADER[i].equals(header[i].trim())) {
return true;
}
@@ -463,6 +463,9 @@ public class OrgServiceImpl implements OrgService {
@@ -187,6 +187,9 @@ public class SpecialtyServiceImpl implements SpecialtyService {