Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
TungYuChiang committed Feb 6, 2025
1 parent 36eae10 commit 1fd9371
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ public final class ListTagsEvent extends TagEvent {
* @param tagNames The list of tag names that were retrieved.
*/
public ListTagsEvent(String user, String metalake, String[] tagNames) {
super(user, NameIdentifierUtil.ofTag(metalake, tagNames[0]));
super(
user,
NameIdentifierUtil.ofTag(
metalake, (tagNames != null && tagNames.length > 0) ? tagNames[0] : ""));
}

/**
Expand Down

0 comments on commit 1fd9371

Please sign in to comment.