jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1719539 - /jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/BytesThroughputGraphConsumer.java
Date Fri, 11 Dec 2015 20:36:24 GMT
Author: fschumacher
Date: Fri Dec 11 20:36:24 2015
New Revision: 1719539

URL: http://svn.apache.org/viewvc?rev=1719539&view=rev
Log:
Use equals for String comparison. Change order of operands to guard against null pointer dereference.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/BytesThroughputGraphConsumer.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/BytesThroughputGraphConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/BytesThroughputGraphConsumer.java?rev=1719539&r1=1719538&r2=1719539&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/BytesThroughputGraphConsumer.java
(original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/BytesThroughputGraphConsumer.java
Fri Dec 11 20:36:24 2015
@@ -79,7 +79,7 @@ public class BytesThroughputGraphConsume
                     @Override
                     public double select(String series, Sample sample) {
                         // TODO Add Received bytes support
-                        return (series == SENT_BYTES_SERIES_LABEL) ? sample
+                        return (SENT_BYTES_SERIES_LABEL.equals(series)) ? sample
                                 .getSentBytes() : 0;
                     }
                 }, false, false));



Mime
View raw message