File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
app/src/main/java/org/team2363/helixnavigator/ui/editor/toolbar Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,9 @@ public TrajectoryToolBar(DocumentManager documentManager) {
85
85
HTrajectory traj = this .documentManager .getDocument ().getSelectedPath ().getTrajectory ();
86
86
FileChooser chooser = new FileChooser ();
87
87
chooser .getExtensionFilters ().add (Standards .TRAJECTORY_FILE_TYPE );
88
- chooser .setInitialFileName (this .documentManager .getDocument ().getSaveLocation ().getName ());
88
+ if (this .documentManager .getDocument ().getSaveLocation () != null ) {
89
+ chooser .setInitialFileName (this .documentManager .getDocument ().getSaveLocation ().getName ());
90
+ }
89
91
File result = chooser .showSaveDialog (this .documentManager .getStage ());
90
92
if (result != null ) {
91
93
try {
You can’t perform that action at this time.
0 commit comments