Skip to content

Commit

Permalink
check if really objectId is found
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Oct 7, 2024
1 parent d03e685 commit 6fa4718
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,7 @@ public Integer getObjectId() throws ArcgisException {
break;
}
}

if ("".equals(objectId)) {
if (objectId.equals(-1)) {
throw new ArcgisException("Cant find " + GisAttributeType.OID + " in Feature Object.");
} else {
return objectId;
Expand Down

0 comments on commit 6fa4718

Please sign in to comment.