fix npe on windows startup

This commit is contained in:
Sebastian Sdorra
2012-08-16 08:11:34 +02:00
parent e382e73797
commit 41ec0431e4

View File

@@ -81,6 +81,8 @@ public class HgPyFix
* @param config * @param config
*/ */
public static void fixHgPy(SCMContextProvider context, HgConfig config) public static void fixHgPy(SCMContextProvider context, HgConfig config)
{
if ((config != null) && config.isValid())
{ {
String basePath = context.getBaseDirectory().getAbsolutePath(); String basePath = context.getBaseDirectory().getAbsolutePath();
@@ -94,6 +96,12 @@ public class HgPyFix
fixHgPy(file); fixHgPy(file);
} }
} }
else if (logger.isDebugEnabled())
{
logger.debug(
"could not fix hg.py, because the configuration is not valid");
}
}
/** /**
* Visible for testing * Visible for testing