zkim/xmpp-clj — Issue #3: Better 'connect-info' validation?
Author: jasperla
Created: 2011-12-18 20:40:51+00:00
State: open

Currently when 'connect-info' lacks a field, or contains ':user' instead of ':username' you're left with:

Exception in thread "main" java.lang.NullPointerException
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:388)
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:349)
[...]

Wouldn't it be better to do very basic validation before going to use 'connect-info' in start-bot?