You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2013/08/07 23:30:54 UTC

svn commit: r1511504 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/ConversionUtils.java

Author: pmouawad
Date: Wed Aug  7 21:30:54 2013
New Revision: 1511504

URL: http://svn.apache.org/r1511504
Log:
Bug 54482 - HC fails to follow redirects with non-encoded chars
Check for null path
Bugzilla Id: 54482

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/ConversionUtils.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/ConversionUtils.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/ConversionUtils.java?rev=1511504&r1=1511503&r2=1511504&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/ConversionUtils.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/ConversionUtils.java Wed Aug  7 21:30:54 2013
@@ -145,7 +145,7 @@ public class ConversionUtils {
             .setHost(url.getHost())
             .setPort(url.getPort())
             .setUserInfo(url.getUserInfo())
-            .setPath(URLDecoder.decode(url.getPath(), "UTF-8")) // $NON-NLS-1$
+            .setPath(url.getPath() != null ? URLDecoder.decode(url.getPath(), "UTF-8") : null) // $NON-NLS-1$
             .setQuery(url.getQuery());
         URI uri = builder.build();
         return uri;