File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/com/loopj/android/http Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1818
1919package com .loopj .android .http ;
2020
21- import java .io .IOException ;
22- import java .util .regex .Pattern ;
23-
21+ import android .os .Message ;
2422import org .apache .http .Header ;
2523import org .apache .http .HttpEntity ;
2624import org .apache .http .HttpResponse ;
2927import org .apache .http .entity .BufferedHttpEntity ;
3028import org .apache .http .util .EntityUtils ;
3129
32- import android .os .Message ;
30+ import java .io .IOException ;
31+ import java .util .regex .Pattern ;
3332
3433/**
3534 * Used to intercept and handle the responses from requests made using
@@ -147,7 +146,7 @@ protected void handleMessage(Message msg) {
147146 break ;
148147 case FAILURE_MESSAGE :
149148 response = (Object [])msg .obj ;
150- handleFailureMessage ((Throwable )response [0 ], ( byte []) response [1 ]);
149+ handleFailureMessage ((Throwable ) response [0 ], response [ 1 ] == null ? "" : response [1 ]. toString () );
151150 break ;
152151 default :
153152 super .handleMessage (msg );
You can’t perform that action at this time.
0 commit comments