Skip to content

Commit 7060eed

Browse files
brunoborgesCopilot
andauthored
Update src/main/java/com/github/copilot/sdk/CopilotSession.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2da6b5a commit 7060eed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/copilot/sdk/CopilotSession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ private void handleBroadcastEventAsync(AbstractSessionEvent event) {
724724
executePermissionAndRespondAsync(data.requestId(), data.permissionRequest(), handler);
725725
} else if (event instanceof CommandExecuteEvent cmdEvent) {
726726
var data = cmdEvent.getData();
727-
if (data == null || data.requestId() == null) {
727+
if (data == null || data.requestId() == null || data.commandName() == null) {
728728
return;
729729
}
730730
executeCommandAndRespondAsync(data.requestId(), data.commandName(), data.command(), data.args());

0 commit comments

Comments
 (0)