Skip to content

Commit

Permalink
fix: prevent nullptr
Browse files Browse the repository at this point in the history
Former-commit-id: de760dc
  • Loading branch information
ci010 committed Jul 15, 2019
1 parent 228e01b commit 4f43b9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/windows/main/components/AdvancedSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export default {
this.minMemory = profile.minMemory;
this.vmOptions = profile.vmOptions;
this.mcOptions = profile.mcOptions;
this.java = this.javas.find(j => j.path === profile.java.path);
if (profile.java) {
this.java = this.javas.find(j => j.path === profile.java.path);
}
},
browseFile() {
Expand Down

0 comments on commit 4f43b9a

Please sign in to comment.