fix npe for mercurial repository hooks

This commit is contained in:
Sebastian Sdorra
2011-10-08 17:25:42 +02:00
parent 20318c4f2c
commit 4bc98c0314
2 changed files with 19 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ import sonia.scm.util.Util;
//~--- JDK imports ------------------------------------------------------------
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
@@ -71,6 +72,22 @@ public class HgChangesetViewer extends AbstractHgHandler
//~--- constructors ---------------------------------------------------------
/**
* Constructs ...
*
*
* @param handler
* @param changesetPagingResultContext
* @param context
* @param repositoryDirectory
*/
public HgChangesetViewer(HgRepositoryHandler handler,
JAXBContext changesetPagingResultContext,
HgContext context, File repositoryDirectory)
{
super(handler, changesetPagingResultContext, context, repositoryDirectory);
}
/**
* Constructs ...
*

View File

@@ -337,8 +337,8 @@ public class HgRepositoryHandler
throw new IllegalStateException("directory not found");
}
return new HgChangesetViewer(this, changesetPagingResultContext, null,
null);
return new HgChangesetViewer(this, changesetPagingResultContext,
hgContextProvider.get(), repositoryDirectory);
}
//~--- methods --------------------------------------------------------------