If either min or max is missing, slider is not a good choice

Stephen Paul Weber created

Change summary

src/main/java/eu/siacs/conversations/entities/Conversation.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

src/main/java/eu/siacs/conversations/entities/Conversation.java 🔗

@@ -2677,7 +2677,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
                                 viewType = TYPE_CHECKBOX_FIELD;
                             }
                         } else if (
-                            range != null && (
+                            range != null && range.getAttribute("min") != null && range.getAttribute("max") != null && (
                                 "xs:integer".equals(datatype) || "xs:int".equals(datatype) || "xs:long".equals(datatype) || "xs:short".equals(datatype) || "xs:byte".equals(datatype) ||
                                 "xs:decimal".equals(datatype) || "xs:double".equals(datatype)
                             )