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?
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?