OpenNMS/opennms — pull request #7 by nallagsoc (2013-04-28 18:36:24+00:00)
Title: Checking for end of input stream to prevent IOException

check for the end of input stream in the while loop to prevent from IOException.