~singpolyma/cheogram-android

99b53df9fc6876748f53aec935a2354886099fc4 — Stephen Paul Weber 1 year, 7 months ago 2f159df
Fix NPE
1 files changed, 2 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/entities/Message.java
M src/main/java/eu/siacs/conversations/entities/Message.java => src/main/java/eu/siacs/conversations/entities/Message.java +2 -1
@@ 1280,12 1280,13 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable 

        public boolean equals(Object o) {
            if (!(o instanceof FileParams)) return false;
            if (url == null) return false;

            return url.equals(((FileParams) o).url);
        }

        public int hashCode() {
            return url.hashCode();
            return url == null ? super.hashCode() : url.hashCode();
        }
    }