mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
skip authors if no one presented
This commit is contained in:
@@ -84,7 +84,8 @@ public class Course {
|
||||
this.authors = new ArrayList<CourseInfo.Author>();
|
||||
for (String name : authors) {
|
||||
final List<String> pair = StringUtil.split(name, " ");
|
||||
this.authors.add(new CourseInfo.Author(pair.get(0), pair.size() > 1 ? pair.get(1) : ""));
|
||||
if (!pair.isEmpty())
|
||||
this.authors.add(new CourseInfo.Author(pair.get(0), pair.size() > 1 ? pair.get(1) : ""));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user