Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
trunk
-
None
-
None
Description
in method check()
String errorCode = props.getProperty("error.code"); if (errorCode.equals("0")) { errorCode = "JA018"; } if (errorCode.equals("-1")) { errorCode = "JA019"; } errorReason = props.getProperty("error.reason");
if error.code is null, these leads to NPEs
easy fix
if ("0".equals(errorCode)) ...