diff --git a/lib/Connection.js b/lib/Connection.js index 292d854..a62efce 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -1818,8 +1818,15 @@ function validateUIDList(uids, noThrow) { return err; else throw err; - } else if (typeof uids[i] !== 'number') + } else if (intval <= 0) { + var err = new Error('UID/seqno must be greater than zero'); + if (noThrow) + return err; + else + throw err; + } else if (typeof uids[i] !== 'number') { uids[i] = intval; + } } }