~singpolyma/cheogram-android

d3b828b17d661ce5c78b847f2a1b7196dda11658 — Stephen Paul Weber 1 year, 7 months ago 44fb756
Fix NPE
1 files changed, 1 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/utils/MessageUtils.java
M src/main/java/eu/siacs/conversations/utils/MessageUtils.java => src/main/java/eu/siacs/conversations/utils/MessageUtils.java +1 -1
@@ 118,6 118,6 @@ public class MessageUtils {

    public static boolean unInitiatedButKnownSize(Message message) {
        return message.getType() == Message.TYPE_TEXT && message.getTransferable() == null && message.isOOb() && message.getFileParams().url != null &&
               (message.getFileParams().size != null || (message.getOob() != null && message.getOob().getScheme().equalsIgnoreCase("cid")));
               (message.getFileParams().size != null || (message.getOob() != null && message.getOob().getScheme() != null && message.getOob().getScheme().equalsIgnoreCase("cid")));
    }
}