|
|
@ -3222,12 +3222,14 @@ public class MessageHelper {
|
|
|
|
m.append(content.getClass().getName());
|
|
|
|
m.append(content.getClass().getName());
|
|
|
|
|
|
|
|
|
|
|
|
String msg = "Expected " + h.contentType + " got " + m + " result=" + (result != null);
|
|
|
|
String msg = "Expected " + h.contentType + " got " + m + " result=" + (result != null);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (result == null) {
|
|
|
|
Log.e(msg);
|
|
|
|
Log.e(msg);
|
|
|
|
warnings.add(msg);
|
|
|
|
warnings.add(msg);
|
|
|
|
|
|
|
|
|
|
|
|
if (result == null)
|
|
|
|
|
|
|
|
result = Helper.readStream(h.part.getInputStream(),
|
|
|
|
result = Helper.readStream(h.part.getInputStream(),
|
|
|
|
cs == null ? StandardCharsets.ISO_8859_1 : cs);
|
|
|
|
cs == null ? StandardCharsets.ISO_8859_1 : cs);
|
|
|
|
|
|
|
|
} else
|
|
|
|
|
|
|
|
Log.w(msg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (DecodingException ex) {
|
|
|
|
} catch (DecodingException ex) {
|
|
|
|
Log.e(ex);
|
|
|
|
Log.e(ex);
|
|
|
|