Skip to content

Commit

Permalink
fix: Should check javaArgs to avoid nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Jun 4, 2023
1 parent 9c78183 commit 6dcd347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmcl-runtime/lib/services/InstanceService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ export class InstanceService extends StatefulService<InstanceState> implements I
if (p.lastVersionId === version.id) {
options.name = p.name
options.java = p.javaDir
options.vmOptions = p.javaArgs.split(' ')
options.vmOptions = p.javaArgs?.split(' ') || []
break
}
}
Expand Down

0 comments on commit 6dcd347

Please sign in to comment.