hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1787500 - /httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/auth/CredSspScheme.java
Date Fri, 17 Mar 2017 21:06:06 GMT
Author: kwright
Date: Fri Mar 17 21:06:06 2017
New Revision: 1787500

URL: http://svn.apache.org/viewvc?rev=1787500&view=rev
Log:
NPE fix related to HTTPCLIENT-1834.

Modified:
    httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/auth/CredSspScheme.java

Modified: httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/auth/CredSspScheme.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/auth/CredSspScheme.java?rev=1787500&r1=1787499&r2=1787500&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/auth/CredSspScheme.java
(original)
+++ httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/auth/CredSspScheme.java
Fri Mar 17 21:06:06 2017
@@ -566,6 +566,9 @@ public class CredSspScheme extends AuthS
 
     private byte[] encodeUnicode( final String string )
     {
+        if (string == null) {
+            return new byte[0];
+        }
         return string.getBytes( UNICODE_LITTLE_UNMARKED );
     }
 



Mime
View raw message