mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
fix npe for mercurial repository hooks
This commit is contained in:
@@ -39,6 +39,7 @@ import sonia.scm.util.Util;
|
|||||||
|
|
||||||
//~--- JDK imports ------------------------------------------------------------
|
//~--- JDK imports ------------------------------------------------------------
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@@ -71,6 +72,22 @@ public class HgChangesetViewer extends AbstractHgHandler
|
|||||||
|
|
||||||
//~--- constructors ---------------------------------------------------------
|
//~--- 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 ...
|
* Constructs ...
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -337,8 +337,8 @@ public class HgRepositoryHandler
|
|||||||
throw new IllegalStateException("directory not found");
|
throw new IllegalStateException("directory not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
return new HgChangesetViewer(this, changesetPagingResultContext, null,
|
return new HgChangesetViewer(this, changesetPagingResultContext,
|
||||||
null);
|
hgContextProvider.get(), repositoryDirectory);
|
||||||
}
|
}
|
||||||
|
|
||||||
//~--- methods --------------------------------------------------------------
|
//~--- methods --------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user