IDEA-110849 INFO - lij.tasks.impl.TaskManagerImpl - Argument 0 for @NotNull parameter of com/intellij/util/containers/ContainerUtil.map must not be null

This commit is contained in:
Dmitry Avdeev
2013-07-23 13:16:52 +04:00
parent 718c577bae
commit 36647b9d0e
@@ -153,7 +153,9 @@ public class MantisRepository extends BaseRepositoryImpl {
@NotNull
@Override
public Comment[] getComments() {
final List<Comment> comments = ContainerUtil.map(data.getNotes(), new Function<IssueNoteData, Comment>() {
IssueNoteData[] notes = data.getNotes();
if (notes == null) return Comment.EMPTY_ARRAY;
final List<Comment> comments = ContainerUtil.map(notes, new Function<IssueNoteData, Comment>() {
@Override
public Comment fun(final IssueNoteData data) {
return new Comment() {