int index = 0;
while (tokenizer.hasMoreTokens()) {
try {
String tok = tokenizer.nextToken();
ids[index] = Integer.parseInt(tok);
<BUG>if (ids[index] < 0)

throw new IllegalArgumentException("String "+oid+" could not be converted to a SnmpObjId. It has a negative for subId "+index);
index++;</BUG>
} catch(NumberFormatException e) {

int index = 0;
while (tokenizer.hasMoreTokens()) {
try {
String tok = tokenizer.nextToken();
ids[index] = Integer.parseInt(tok);
if (ids[index] < 0) {
throw new IllegalArgumentException("String "+oid+" could not be converted to a SnmpObjId. It has a negative for subId "+index);
}
index++;
} catch(NumberFormatException e) {
