diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/SearchAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/SearchAction.java index 818f5e0db..0fd44d4e6 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/SearchAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/SearchAction.java @@ -87,7 +87,7 @@ public class SearchAction private static final String COMPLETE_QUERY_STRING_SEPARATOR = ";"; - private List managedRepositoryList; + private List managedRepositoryList = new ArrayList(); private String groupId; @@ -135,7 +135,6 @@ public class SearchAction public void prepare() { - managedRepositoryList = new ArrayList(); managedRepositoryList = getObservableRepos(); if ( managedRepositoryList.size() > 0 )