ziccardi/jnrpe-lib — pull request #1 by Athou (2012-04-17 11:20:46+00:00)
Title: Fixing a NullPointerException

I was getting the following exception because sbTemp was never written to.

Exception in thread "JNRPEServerThread" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.AbstractStringBuilder.substring(Unknown Source)
at java.lang.StringBuffer.substring(Unknown Source)
at java.lang.StringBuffer.substring(Unknown Source)
at it.jnrpe.JNRPEServerThread.argsToString(JNRPEServerThread.java:100)
at it.jnrpe.JNRPEServerThread.handleRequest(JNRPEServerThread.java:76)
at it.jnrpe.JNRPEServerThread.run(JNRPEServerThread.java:120)