]
George Gastaldi moved FORGE-2312 to FURNACE-44:
-----------------------------------------------
Project: Forge: Furnace (was: Forge)
Key: FURNACE-44 (was: FORGE-2312)
Issue Type: Bug (was: Feature Request)
Affects Version/s: 2.16.0.Final
(was: 2.16.0.Final)
Component/s: (was: Furnace (Container))
NPE exception in furnace
------------------------
Key: FURNACE-44
URL:
https://issues.jboss.org/browse/FURNACE-44
Project: Forge: Furnace
Issue Type: Bug
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}