Mqttsamples

If scanner.nextLine() is empty, input.split would give an error (http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#split(java.lang.String,%20int)) ?