1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-20 17:47:57 +01:00

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
This commit is contained in:
rcollier 2013-02-07 03:57:38 +00:00
parent 8c0b062629
commit 14f139f642

View file

@ -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<String> getFieldValues(ConfigureNodeFields field)