Skip to content

Commit

Permalink
Issue #513: Fix NPE on elements with no name
Browse files Browse the repository at this point in the history
Signed-off-by: Ernesto Posse <eposse.gmail.com>
  • Loading branch information
Ernesto Posse committed Jul 17, 2024
1 parent 6f2d17f commit fea9af9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public static String getNameOrId(Object obj) {
Object nameVal = eObj.eGet(attribute);
if (nameVal instanceof List) {
nameOrId = stringFromList((List)nameVal);
} else {
} else if (nameVal instanceof String) {
nameOrId = (String) nameVal.toString();
}
found = true;
Expand Down

0 comments on commit fea9af9

Please sign in to comment.