I added some additional error checking to handle problems parsing lines in the known_hosts file that was throwing NoSuchElementException's. I'm very new to committing to OSS projects so please be gentle if my patch file isn't done correctly. I copied the j2ssh directory to a directory called j2ssh_patched and modified its contents, then generated the patch file using diff -rc j2ssh j2ssh_patched > patch . Then I checked it with patch -p0 -i patch run from the directory containing both the copies of j2ssh and j2ssh_patched. I hope this is correct. The only file I modified was /src/com/sshtools/j2ssh/transport/AbstractKnownHostsKeyVerification.java around line 114.
This should help at least a few people who were citing problems with blank lines in their known_hosts file, including myself.
patch for AbstractKnownHostsKeyVerification.java