mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
fix npe for mercurial repository hooks
This commit is contained in:
@@ -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 ...
|
||||
*
|
||||
|
||||
@@ -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 --------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user