~singpolyma/cheogram-android

5288fd7bea6fe7ed12be16e90390cf4dd9c13d6b — Stephen Paul Weber a month ago f949d69
Fix NPE
1 files changed, 4 insertions(+), 0 deletions(-)

M src/main/java/eu/siacs/conversations/entities/Conversation.java
M src/main/java/eu/siacs/conversations/entities/Conversation.java => src/main/java/eu/siacs/conversations/entities/Conversation.java +4 -0
@@ 1752,7 1752,11 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
                    if (item.getName().equals("instructions") && item.getNamespace().equals("jabber:x:data")) return TYPE_NOTE;
                    if (item.getName().equals("field") && item.getNamespace().equals("jabber:x:data")) {
                        String formType = responseElement.getAttribute("type");
                        if (formType == null) return -1;

                        String fieldType = item.getAttribute("type");
                        if (fieldType == null) fieldType = "text-single";

                        if (formType.equals("result") || fieldType.equals("fixed")) return TYPE_RESULT_FIELD;
                        if (formType.equals("form")) {
                            if (fieldType.equals("boolean")) return TYPE_CHECKBOX_FIELD;