Fix for audio attachment server NPE

Fixes #4615
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-11-19 15:58:50 -08:00
parent 06f2908d78
commit 7817c7697e

View File

@ -171,8 +171,8 @@ public class AudioAttachmentServer implements Runnable {
Log.i(TAG, "range found!! " + cbSkip);
}
if(!request.get("method").equals("GET")) {
Log.e(TAG, "Only GET is supported");
if (!"GET".equals(request.get("method"))) {
Log.e(TAG, "Only GET is supported: " + request.get("method"));
return false;
}