diff --git a/source/org/jivesoftware/smackx/pubsub/ConfigureForm.java b/source/org/jivesoftware/smackx/pubsub/ConfigureForm.java index 7f1005e87..f6fe1409a 100644 --- a/source/org/jivesoftware/smackx/pubsub/ConfigureForm.java +++ b/source/org/jivesoftware/smackx/pubsub/ConfigureForm.java @@ -677,7 +677,7 @@ public class ConfigureForm extends Form { FormField formField = getField(field.getFieldName()); - return formField.getValues().next(); + return (formField.getValues().hasNext()) ? formField.getValues().next() : null; } private Iterator getFieldValues(ConfigureNodeFields field)