Skip to content

Commit 8576b68

Browse files
committed
use empty string, not null
1 parent 7f3ea99 commit 8576b68

File tree

1 file changed

+1
-1
lines changed
  • library/src/main/java/com/qiniu/android/http

1 file changed

+1
-1
lines changed

library/src/main/java/com/qiniu/android/http/Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public com.squareup.okhttp.Response intercept(Chain chain) throws IOException {
7878

7979
com.squareup.okhttp.Response response = chain.proceed(request);
8080
IpTag tag = (IpTag) request.tag();
81-
String ip = null;
81+
String ip = "";
8282
try {
8383
ip = chain.connection().getSocket().getRemoteSocketAddress().toString();
8484
}catch (Exception e){

0 commit comments

Comments
 (0)