]
George Gastaldi closed FURNACE-44.
----------------------------------
Assignee: George Gastaldi
Fix Version/s: 2.17.1.Final
Resolution: Done
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
Assignee: George Gastaldi
Fix For: 2.17.1.Final
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}