From 14f139f6422347f438fbe52f201c944e4640e69a Mon Sep 17 00:00:00 2001 From: rcollier Date: Thu, 7 Feb 2013 03:57:38 +0000 Subject: [PATCH] Fixed small problem in one field and removed possible NPE on get from any field. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13454 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smackx/pubsub/ConfigureForm.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)