From: <fg...@us...> - 2007-01-27 19:55:11
|
Revision: 151 http://svn.sourceforge.net/openutils/?rev=151&view=rev Author: fgiust Date: 2007-01-27 11:55:11 -0800 (Sat, 27 Jan 2007) Log Message: ----------- check for null properties Modified Paths: -------------- trunk/openutils-deployment/src/main/java/it/openutils/deployment/spring/EnvironmentPropertyConfigurer.java Modified: trunk/openutils-deployment/src/main/java/it/openutils/deployment/spring/EnvironmentPropertyConfigurer.java =================================================================== --- trunk/openutils-deployment/src/main/java/it/openutils/deployment/spring/EnvironmentPropertyConfigurer.java 2007-01-27 19:44:34 UTC (rev 150) +++ trunk/openutils-deployment/src/main/java/it/openutils/deployment/spring/EnvironmentPropertyConfigurer.java 2007-01-27 19:55:11 UTC (rev 151) @@ -100,10 +100,16 @@ log.error(e.getMessage()); // should not happen } - System.setProperty("env", hostname); + if (hostname != null) + { + System.setProperty("env", hostname); + } String applName = getApplicationName(); - System.setProperty("appl", applName); + if (applName != null) + { + System.setProperty("appl", applName); + } URL propertyUrl = null; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |