]
James Strachan edited comment on FORGE-2312 at 4/28/15 6:40 AM:
----------------------------------------------------------------
Here's a PR
NPE exception in furnace
------------------------
Key: FORGE-2312
URL:
https://issues.jboss.org/browse/FORGE-2312
Project: Forge
Issue Type: Feature Request
Components: Furnace (Container)
Affects Versions: 2.16.0.Final
Reporter: James Strachan
I think there's a copy/paste bug here:
https://github.com/forge/furnace/blob/2e7cccac8b776239578e57d986365fdb284...
I think this code should be switched from
{code}
if (originalLocalRepository != null)
System.setProperty(MavenContainer.ALT_GLOBAL_SETTINGS_XML_LOCATION,
originalGlobalSettings);
else
System.clearProperty(MavenContainer.ALT_GLOBAL_SETTINGS_XML_LOCATION);
{code}
to:
{code}
if (originalGlobalSettings != null)
System.setProperty(MavenContainer.ALT_GLOBAL_SETTINGS_XML_LOCATION,
originalGlobalSettings);
else
System.clearProperty(MavenContainer.ALT_GLOBAL_SETTINGS_XML_LOCATION);
{code}
I got this exception:
{code}
10:27:56 Caused by: java.lang.NullPointerException: null
10:27:56 at java.util.Hashtable.put(Hashtable.java:459)
10:27:56 at java.util.Properties.setProperty(Properties.java:166)
10:27:56 at java.lang.System.setProperty(System.java:796)
10:27:56 at
org.jboss.forge.arquillian.FurnaceDeployableContainer.resetMavenSettings(FurnaceDeployableContainer.java:175)
10:27:56 at
org.jboss.forge.arquillian.FurnaceDeployableContainer.deploy(FurnaceDeployableContainer.java:96)
{code}