Commits

Sebastian Sdorra committed 63d5407

fix nullpointerexception in git servlet

  • Participants
  • Parent commits 6a8324e

Comments (0)

Files changed (1)

File scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmGitServlet.java

 //~--- non-JDK imports --------------------------------------------------------
 
 import com.google.inject.Inject;
-import com.google.inject.Provider;
 import com.google.inject.Singleton;
 
 import org.eclipse.jgit.http.server.GitServlet;
 import org.slf4j.LoggerFactory;
 
 import sonia.scm.repository.GitUtil;
+import sonia.scm.repository.RepositoryProvider;
 import sonia.scm.repository.RepositoryRequestListenerUtil;
 import sonia.scm.util.HttpUtil;
 
   public ScmGitServlet(
           GitRepositoryResolver repositoryResolver,
           GitReceivePackFactory receivePackFactory,
-          Provider<sonia.scm.repository.Repository> repositoryProvider,
+          RepositoryProvider repositoryProvider,
           RepositoryRequestListenerUtil repositoryRequestListenerUtil)
   {
     this.resolver = repositoryResolver;
   //~--- fields ---------------------------------------------------------------
 
   /** Field description */
-  private Provider<sonia.scm.repository.Repository> repositoryProvider;
+  private RepositoryProvider repositoryProvider;
 
   /** Field description */
   private RepositoryRequestListenerUtil repositoryRequestListenerUtil;