Permalink
Browse files

update problems command to always return a list, never null

  • Loading branch information...
1 parent 33d6368 commit 58b119c54571753236409dc8a12fba89e693d8f2 @ervandew committed Jul 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 org.eclim.core/java/org/eclim/plugin/core/command/problems/ProblemsCommand.java
View
4 org.eclim.core/java/org/eclim/plugin/core/command/problems/ProblemsCommand.java
@@ -116,16 +116,16 @@ public Object execute(CommandLine commandLine)
gatherMarkers.invoke(generator,
generator.getTypes(), true, markers, new NullProgressMonitor());
+ ArrayList<Error> problems = new ArrayList<Error>();
if (markers.size() == 0){
- return null;
+ return problems;
}
ArrayList<IProject> projects = new ArrayList<IProject>();
projects.add(project);
CollectionUtils.addAll(projects, project.getReferencedProjects());
CollectionUtils.addAll(projects, project.getReferencingProjects());
- ArrayList<Error> problems = new ArrayList<Error>();
Method getMarker = null;
for (Object markerEntry : markers){
if (getMarker == null){

0 comments on commit 58b119c

Please sign in to comment.