From 7817c7697efec789df0937b8d8b0f2cccea87928 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Thu, 19 Nov 2015 15:58:50 -0800 Subject: [PATCH] Fix for audio attachment server NPE Fixes #4615 // FREEBIE --- .../thoughtcrime/securesms/audio/AudioAttachmentServer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/audio/AudioAttachmentServer.java b/src/org/thoughtcrime/securesms/audio/AudioAttachmentServer.java index 31e67a767e..dd96d91933 100644 --- a/src/org/thoughtcrime/securesms/audio/AudioAttachmentServer.java +++ b/src/org/thoughtcrime/securesms/audio/AudioAttachmentServer.java @@ -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; }