You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2007/11/11 19:17:51 UTC

svn commit: r593935 - /jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleEvent.java

Author: sebb
Date: Sun Nov 11 10:17:50 2007
New Revision: 593935

URL: http://svn.apache.org/viewvc?rev=593935&view=rev
Log:
If hostame cannot be found, return empty string rather than null

Modified:
    jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleEvent.java

Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleEvent.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleEvent.java?rev=593935&r1=593934&r2=593935&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleEvent.java (original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleEvent.java Sun Nov 11 10:17:50 2007
@@ -28,8 +28,6 @@
 /**
  * Packages information regarding the target of a sample event, such as the
  * result from that event and the thread group it ran in.
- * 
- * @version $Revision$
  */
 public class SampleEvent implements Serializable {
     private static final Logger log = LoggingManager.getLoggerForClass();
@@ -37,7 +35,7 @@
     public static final String HOSTNAME;
 
 	static {
-        String hn=null;
+        String hn="";
 		try {
 			hn = InetAddress.getLocalHost().getHostName();
 		} catch (UnknownHostException e) {



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org