parseParams throws exception on bad formatting, and its perfectly valid to have params with 0 values (e.g. DEST GENERATE\n)

This commit is contained in:
jrandom
2004-05-04 01:35:09 +00:00
committed by zzz
parent 5aa680fc93
commit 141902b86d
2 changed files with 6 additions and 9 deletions

View File

@@ -281,7 +281,7 @@ public class SAMv1Handler extends SAMHandler implements SAMRawReceiver, SAMDatag
private boolean execDestMessage(String opcode, Properties props) {
if (opcode.equals("GENERATE")) {
if (props != null) {
if (props.size() > 0) {
_log.debug("Properties specified in DEST GENERATE message");
return false;
}